eLabSDK.GUI.Button
Functions
Name | Description |
---|---|
render() | Renders the button |
addCounter() | Adds a counter to the rendered button |
action() | Triggers the associated action |
render()
Renders the button
Kind: global function
Returns: object
- JQuery Object
Example
var $btn = button.render();
$('#MyTargetDiv').append($btn);
addCounter()
Adds a counter to the rendered button
Kind: global function
Returns: null
Example
button.addCounter({
'class': 'className', // optional
value:'100', //static value
source: '' // or load from server by adding a api call
});
action()
Triggers the associated action
Kind: global function
© 2023 eLabNext
Updated 10 months ago