Table of Contents |
Buttons
Overview
Button is the name used to describe an element that stores no data, but performs an action when clicked.
To add a Button element, go to Base Types > Button and add it to the canvas.
Button elements may be included as part of many custom types, such as Notifications and File / Link Banks.
Type of Data Stored
A Button stores no data and has no state (unchecked / checked, populated, etc).
A common way of providing a button that will record information would be to use Javascript to update another element that will act as a proxy for the button. Elements such as Dropdowns and Checkboxes make good proxy elements.
Attributes
Attribute | Description |
---|---|
content |
This attribute applies the visible text that will appear in the Button element. This text can be different from the href URL. For more information on styling a content tab, please read the lesson about the Text / Label Base Type. |
onclick | This attribute will execute the Javscript code included in the attribute value when the button is clicked. |
style |
Styling an Button element can be done using CSS in the style attribute. Common styles used on Buttons include:
|
Import Data
Buttons can not be used for Import Data, as they do not store data.
For more information about setting up elements for Import Data, please read the lesson called “SIS and GDI Import” in Level 2.