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 DropdownHelper

Add dropdown menus to nearly anything with this simple plugin, including the navbar, tabs, and pills.

<?php
echo $this->Cakestrap->Dropdown()
                     ->title("Select")
                     ->item(['Option 1'=>['controller'=>'home', 'action'=>'action1'])
                     ->item('Option 2')
                     ->item(['Option 3'=>['controller'=>'home', 'action'=>'action3']])
                     ->set()
?>
Cake\View\Helper
Extended by Cakestrap\View\Helper\Basic
Extended by Cakestrap\View\Helper\DropdownHelper
Namespace: Cakestrap\View\Helper
Package: Cakestrap\View\Helper
Link: http://getbootstrap.com/javascript/#dropdowns
Located at DropdownHelper.php
Methods summary
public string
# set( )

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

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

Returns

string
public object
# item( string $item = null )

Set the Dropdown item

Set the Dropdown item

Parameters

$item

Returns

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

Parameters

$title

Returns

Properties summary
public array $helpers

Helpers to use

Helpers to use

Param

array
# ['Html']
protected array $_items

An array that contain items

An array that contain items

Param

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