SilkBuilder
  • SilkBuilder
  • Development Environment
    • Development Environment
    • System Elements
    • Project, Data Model and ORM
    • Development Formats
  • Silk Builder Training
    • Sample Database
    • Plain Application
    • Easy Application
    • Simple Application
    • Complex Application
    • Report Application
    • System Environment
  • Docs
    • The ORM Structure
    • SilkBuilder
    • Silk Service
    • Java Database Class
    • Report
  • Silk Tags
    • App
    • AppHeader
    • Button
    • ButtonItem
    • Chart
    • Column
    • Content
    • DataProvider
    • DataService
    • Form
    • Group
    • Header
    • HelpBox
    • If
    • Input
    • JQcode
    • JScode
    • LogicAction
    • LogicDimension
    • LogicGrid
    • Modal
    • ModalBody
    • ModalFooter
    • Module
    • Page
    • Pagination
    • Screen
    • ScreenFooter
    • ScreenHeader
    • Tab
    • TabItem
    • Table
    • TableBody
    • TableHeader
    • TabsNav
    • Tile
  • JavaScript Objects
    • Button
    • ChartJS
    • Column
    • DataProvider
    • EventManager
    • Form
    • Input
    • Modal
    • Pagination
    • SilkPage
    • Table
    • TabsNav
    • Tile
    • Utility Functions
  • Coding Techniques
    • Data Trees
    • Pagination
    • Mark Deleted
    • Record Sync
    • Filtering Code
    • Content Template
    • Sort Data Columns
    • Form Input File
    • Button with Confirmation
    • Toggle List
    • Table Inputs
Powered by GitBook
On this page
  • Tag Definition
  • Properties
  • id
  • label
  • targetPage
  • icon
  • dock
  • width
  • cssClass
  • cssStyle
  • renderIf
  • extraProperties
  • group
  • disabled
  • hidden
  • confirmTitle
  • confirmMessage
  • confirmLabel
  • confirmIcon
  • toggleList
  • logicGrid
  • criteria
  1. Silk Tags

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:

<silk:Button
  id=""
  label=""
  targetPage=""
  icon=""
  dock=""
  width=""
  cssClass="btn-primary"
  cssStyle=""
  renderIf=""
  extraProperties=""
  group="false"
  disabled="false"
  hidden="false"
  confirmTitle=""
  confirmMessage=""
  confirmLabel=""
  confirmIcon=""
  toggleList=""
  logicGrid=""
  criteria=""
/>

Used as a container:

<silk:Button
  id=""
  label=""
  targetPage=""
  icon=""
  dock=""
  width=""
  cssClass="btn-primary"
  cssStyle=""
  renderIf=""
  extraProperties=""
  group="false"
  disabled="false"
  hidden="false"
  confirmTitle=""
  confirmMessage=""
  confirmLabel=""
  confirmIcon=""
  toggleList=""
  logicGrid=""
  criteria=""
>
   Contains: Silk:ButtonItems
</silk:Button>

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.

PreviousAppHeaderNextButtonItem

Last updated 1 day ago

It contains the logic sentence defining whether the component should be rendered. The logic statement's explanation is in the documentation. Default Value: Empty.

Server Code Logic