Overview

Namespaces

  • Cakestrap
    • View
      • Helper

Classes

  • AlertHelper
  • AssetHelper
  • BadgeHelper
  • Basic
  • ButtonItemsHelper
  • CakestrapHelper
  • CallOutHelper
  • CollapseHelper
  • DropdownHelper
  • ListGroupHelper
  • ModalHelper
  • PanelHelper
  • TabHelper
  • TableHelper
  • Templates
  • WellHelper
  • Overview
  • Namespace
  • Class

Class ButtonItemsHelper

List group items may be buttons instead of list items.

<?php
echo $this->Cakestrap->ButtonItems()
                     ->button("One")
                     ->button("Two")
                     ->button("Three")
                     ->set()
?>
Cake\View\Helper
Extended by Cakestrap\View\Helper\Basic
Extended by Cakestrap\View\Helper\ButtonItemsHelper
Namespace: Cakestrap\View\Helper
Package: Cakestrap\View\Helper
Link: http://getbootstrap.com/components/#list-group-buttons
Located at ButtonItemsHelper.php
Methods summary
public object
# button( string $button = null )

Set the button items

Set the button items

Parameters

$button

Returns

object
$this
public string
# set( )

Set all defined values. This will return the final html template.

Set all defined values. This will return the final html template.

Returns

string
$container
protected
# _setButton( )

Extract all the button items

Extract all the button items

protected
# _addToContainer( )

Add all button items to parent container

Add all button items to parent container

Methods inherited from Cakestrap\View\Helper\Basic
__call(), _reset(), assignTemplate(), body(), options()
Magic methods summary
public
# options( array $options )

Parameters

$options

Returns

Properties summary
protected array $_options

Default helper options. These options are merged with the user-provided options.

Default helper options. These options are merged with the user-provided options.

# [ 'class' => null ]
protected array $_button

An array to hold the button items

An array to hold the button items

# []
Properties inherited from Cakestrap\View\Helper\Basic
$_clone, $_contents, $_stringTemplate, $_template
API documentation generated by ApiGen