Button
The silk:Button tag generates a button stylized with Bootstrap.
The button primarily operates standalone, but can also work as a button container.
Tag Definition
Used standalone:
Used as a container:
Properties
id
The button's unique identifier. If the button's events are not going to be used, the id is not required. Default Value: Empty.
label
The value is used as the button's label. It is not required if the button only shows an icon. Default Value: Empty.
targetPage
The ID of the page to be shown when the button is clicked. This also works with silk:Modal. If opening a page/modal is the only button's functionality, then an ID is not necessary. Default Value: Empty.
icon
The icon value is a class from a Font Awesome icon or the HTML containing the icon. Also these values can be used to add icons: - The value "insert" adds a plus icon. - The value "update" adds a pencil icon. - The value "delete" adds a trash can icon. - The value "cancel" adds an x-mark icon. - The value "submit" adds a check icon. Default Value: Empty.
dock
Defines the button's location if it is contained in a silk:header component. The values are: left, center, right. Default Value: Empty.
width
Sets the button's fixed width. By default, the button's width will be changed based on its content. Default Value: Empty.
cssClass
The classes to stylize the button. It expects Bootstrap classes. The button already has the "btn" class and is initialized with "btn-primary". Default Value: btn-primary.
cssStyle
To add extra styling using CSS styling elements. Default Value: Empty.
renderIf
extraProperties
To add extra HTML properties not defined by the silk:Button component. Default Value: Empty.
group
Adds Bootstrap classes to group the button. Default Value: false.
disabled
Adds Bootstrap classes to group the button. Default Value: false.
hidden
Initializes the button as hidden. Uses the CSS style display: none;
.
Default Value: false.
confirmTitle
Sets the title of the confirmation dialog. Default Value: Empty.
confirmMessage
Sets the message to show in the confirmation dialog. Default Value: Empty.
confirmLabel
Sets the label for the accept button in the confirmation dialog. Default Value: Empty.
confirmIcon
Sets the confirmation dialog icon. Default Value: Empty.
toggleList
The list of comma-separated elements that will be toggled together with the component. The value "parent" toggles the immediate parent element. The value "grandpa" toggles the grandparent element. Default Value: Empty.
logicGrid
Default Value: Empty.
criteria
Default Value: Empty.
Last updated