Override defaults with $.fn.linkbutton.defaults.
The linkbutton is used to create a hyperlink button. It is a representation of a normal <a> tag. It can display both an icon and text, or only the icon or text. The button width can dynamic and shrink/expand to fit its text labels.
Create a linkbutton from markup is more easily.
Create a linkbutton programmatically is also allowed.
Clicking on linkbutton will send the user to other page.
The example below will alert a message.
Bind click handler using jQuery.
Name | Type | Description | Default |
---|---|---|---|
id | string | The id attribute of this component. | null |
disabled | boolean | True to disable the button | false |
plain | boolean | True to show a plain effect. | false |
text | string | The button text. | '' |
iconCls | string | A CSS class to display a 16x16 icon on left. | null |
Name | Parameter | Description |
---|---|---|
options | none | Return options property. |
disable | none |
Disable the button.
Code example: $('#btn').linkbutton('disable'); |
enable | none |
Enable the button.
Code example: $('#btn').linkbutton('enable'); |