Create an input (or button, or anchor) html element and call button()
method of jQuery UI.
<script>
$(function() {
$( "#myButton" ).button();
});
</script>
HTML
<input type="button" value="A button" id="myButton">
Parameter | Type - Details - Default |
---|---|
disabled | Boolean - Disables the button if set to true - false |
icons | Object - Icons to display - { primary: null, secondary: null } |
label | String - Text to show in the button - null |
text | Boolean - Whether to show the label - true |