Addition of a button
The button is composed from an image and a title, and it allows to create a link. To create a button, we use addItemButton()
:
$title
: Link title.$link
: URL of the link.$icon
: Image that exists before the link. Values are: 'add' or 'list'.$extra
: Text after the title.
To display the buttons, we use renderButton()
:
$position
: Position of the buttons. Values are: 'left', 'center' or 'right'.$delimeter
: Demarcation between the buttons. The default: ' '.
We can add as many buttons as we need.
Example:
The result:
Last updated