LinkButton
Extends \Joomla\CMS\Toolbar\ToolbarButtonRenders a link button
The JButton is the base class for all JButton types
since |
3.0 |
---|
Methods
__construct
Constructor
__construct(object $parent = null)
inherited
Arguments
- $parent
object
The parent
_getCommand
Get the JavaScript command for the button
_getCommand(object $url) : string
since |
3.0 |
---|
Arguments
- $url
object
Button definition
Response
string
JavaScript command string
fetchButton
Get the button
fetchButton() : string
inherited abstract
Defined in the final button class
since |
3.0 |
---|
Response
string
fetchIconClass
Method to get the CSS class name for an icon identifier
fetchIconClass(string $identifier) : string
inherited
Can be redefined in the final class
since |
3.0 |
---|
Arguments
- $identifier
string
Icon identification string
Response
string
CSS class name
fetchId
Get the button CSS Id
fetchId(string $type = 'Link', string $name = '') : string
since |
3.0 |
---|
Arguments
- $type
string
The button type.- $name
string
The name of the button.
Response
string
Button CSS Id
getName
Get the element name
getName() : string
inherited
since |
3.0 |
---|
Response
string
type of the parameter
render
Get the HTML to render the button
render( &$definition) : string
inherited
since |
3.0 |
---|
Arguments
- $definition
Response
string
Properties
_name
element name
inherited
This has to be set in the final renderer classes.
Type(s)
string
_parent
reference to the object that instantiated the element
inherited
Type(s)
\JButton