element <Button>
Namespace:
http://schema.caplin.com/CaplinTrader/webcentric
XML Representation Summary
<Button
   
 = 
xs:string
 = 
xs:string
 = 
xs:integer
 = 
xs:integer
 = 
xs:string
 = 
xs:string
 = 
xs:string
 = 
xs:string
 = 
xs:string
    >
   
Content: 
eval | showDialog | saveLayout | showComponent | hideComponent | setValue | close | confirm
</Button>
Child elements (8):
Parent elements (3):
Description
A button control which can be included in handlebars, toolbars or tabstrips. Buttons fire a single event - DOMActivate - which fires when the button is clicked. The button can display either an image or text.
Attribute Detail
alt
Type:
xs:string, predefined
Use:
optional
Alternative text for the button element.

button_id
Type:
xs:string, predefined
Use:
optional
Unique id for the button type.

height
Type:
xs:integer, predefined
Use:
optional
Height of the button in pixels.

img
Type:
xs:string, predefined
Use:
optional
The path, relative to the application aspect, to the image set on top of the button.

state
Type:
xs:string, predefined
Use:
optional
This toggle value is set to "on" or "off" to determine whether the button is in a pressed state or otherwise, and changes each time the button is pressed. The state attribute may also represent an xpath expression which will be evaluated to determine the current state. It must target an attribute value, not a node reference. Enclosing curly braces indicate an xpath expression; e.g. state="{boolean(./@language='en')}". Use of the xpath expression will establish a 2-way binding with the target node identified by the xpath expression.

style
Type:
xs:string, predefined
Use:
optional
Applies a custom class attribute to the HTML element that represents it, based on the name of this element and the value of the style attribute, and allows a custom view object to be used in JavaScript, again using the element name and style value. See the style attribute in the Stack element for more detail.

tooltip
Type:
xs:string, predefined
Use:
required
This value is the text that will be displayed when hovering over the button.

tooltips
Type:
xs:string, predefined
Use:
optional
This is an alternative to the "tooltip" attribute that can be used for a button with multiple states. It is a list of tooltips separated by "; " (semicolon and space).

width
Type:
xs:integer, predefined
Use:
optional
Width of the button in pixels.