Property | Type | Description | |
---|---|---|---|
$icon | This property looks quite obsolete | ||
$js_active_class | jQuery-UI class for active (selected) button | ||
$js_triangle_class | jQuery-UI class for triangle, down arrow button | ||
$menu | Menu_jUI | ||
$menu_class | Menu class | ||
$options | Options to pass to JS button widget | ||
$popover_class | Popover class | ||
$virtual_page | VirtualPage |
Property | Type | Description | |
---|---|---|---|
$js_button_called | boolean |
Method | Description | |
---|---|---|
addMenu ( array $options = [], boolean $vertical = false ) : Menu | Show menu when clicked. For example, dropdown menu. | |
addPopover ( array $js_options = [], array $class_options = null ) : View_Popover | When button is clicked, opens a frame containing generic view. | |
addSplitButton ( array $options = null ) : Button | Adds another button after this one with an arrow and returns it. | |
defaultTemplate ( ) | Set template of button element. | |
getPosition ( boolean $vertical = false ) : array | Return array with position settings for JS. | |
isClicked ( string $message = null ) : boolean | Add click handler on button and returns true if button was clicked. | |
jsButton ( ) | ||
link ( string $page, array $args = [] ) | Set button as HTML link object . | |
onClick ( callback $callback, string $confirm_msg = null ) | Add click handler on button and executes $callback if button was clicked. | |
onClickConsole ( callable $callback, string $title = null ) | Add click handler on button, that will execute callback. Similar to onClick, however output from callback execution will appear in a dialog window with a console. | |
render ( ) | Render button. | |
setIcon ( string $icon ) | Sets icon for button. | |
setLabel ( string | array $label ) | Sets label of button. | |
setNoText ( string $icon = null ) | Set button without text and optionally with icon. |
public addPopover ( array $js_options = [], array $class_options = null ) : View_Popover | ||
$js_options | array | Options to pass to popover JS widget |
$class_options | array | Options to pass to popover PHP class |
return | View_Popover |
public addSplitButton ( array $options = null ) : Button | ||
$options | array | Options to pass to new Button class |
return | Button | New button object (button with triangle) |
public getPosition ( boolean $vertical = false ) : array | ||
$vertical | boolean | Direction of menu (false=horizontal, true=vertical) |
return | array |
public onClickConsole ( callable $callback, string $title = null ) | ||
$callback | callable | |
$title | string |
public $js_active_class |
public $js_triangle_class |