* and a mandatory `html` key, which contains its value.
*/
$button = array(
- 'href' => '#',
- 'class' => 'mybutton',
- 'title' => 'hover me',
+ 'attr' => array (
+ 'href' => '#',
+ 'class' => 'mybutton',
+ 'title' => 'hover me',
+ ),
'html' => 'DEMO buttons toolbar',
);
$data['buttons_toolbar'][] = $button;
* </form>
*/
$form = array(
- 'method' => 'GET',
- 'action' => '?',
- 'class' => 'addform',
+ 'attr' => array(
+ 'method' => 'GET',
+ 'action' => '?',
+ 'class' => 'addform',
+ ),
'inputs' => array(
array(
'type' => 'text',
}
// Another button always displayed
$button = array(
- 'href' => '#',
+ 'attr' => array(
+ 'href' => '#',
+ ),
'html' => 'Demo',
);
$data['buttons_toolbar'][] = $button;
* It's also recommended to add key 'on' or 'off' for theme rendering.
*/
$action = array(
- 'href' => '?up',
- 'title' => 'Uppercase!',
+ 'attr' => array(
+ 'href' => '?up',
+ 'title' => 'Uppercase!',
+ ),
'html' => '←',
);