Button

The action trigger. A button does nothing by itself: it carries an onClick event, and that event is what calls a 4D function, opens a modal or reloads a block. Label, icon, icon position and the animation shown while the action runs are all set here.

What it is

Typebutton
Categoryform
Children allowed0
Styling targetsbspk, button, icon
EventsonClick

The settings

Only the settings specific to this block are listed here. The block name, HTML id, anchor, conditional display and repetition are shared by every block and described once, under Shared settings.

Help tag

SettingHow it is setWhat it doesSpecifics
Tooltip content
vt_HelpTip
text (text)—translatable
Tooltip position
vt_HelpTipPosition
select (text)—

Label & texts

SettingHow it is setWhat it doesSpecifics
Button label
vt_FieldLabel
text (text)—translatable
Button label (4D code)
vt_FieldLabel4D
text (text)—accepts 4D

Appearance

SettingHow it is setWhat it doesSpecifics
Hide Icon
vb_DisplayIcon
toggle (boolean)—default: no
Hide label
vb_DisplayLabel
toggle (boolean)—default: no
Outline
vb_IsOutline
toggle (boolean)—default: no
Loading animation while running
vb_LoadingOnEvent
toggle (boolean)While the event runs, the button icon is replaced by an animation and the button becomes inactive. The original icon comes back as soon as the action has answered.default: no
Icon to the right
vb_ReverseIcon
toggle (boolean)—default: no
Icon
vt_Icon
iconSelector (text)—
Loading icon
vt_LoadingIcon
iconSelector (text)Leave empty to show the default loading animation (spinning circle). Otherwise the icon chosen here replaces the button icon while the action runs.
Button type
vt_Type
select (text)—

The tables on this page are produced automatically from the block's schema. If this page and the panel disagree, the schema is right.