YiiFoundation
  • Namespace
  • Class
  • Tree

Namespaces

  • foundation
    • enum
    • exception
    • helpers
    • widgets
      • base
  • PHP

Classes

  • Alert
  • Breadcrumbs
  • Clearing
  • Dropdown
  • FlexVideo
  • Interchange
  • JoyRide
  • Magellan
  • Orbit
  • Pager
  • Reveal
  • Section
  • SwitchButton
  • Tooltip
  • TopBar

Class Dropdown

Dropdown renders a foundation dropdown. It differs from MenuDropdown helper.

CWidget
Extended by foundation\widgets\base\Widget
Extended by foundation\widgets\Dropdown
Namespace: foundation\widgets
Package: foundation\widgets
Author: Antonio Ramirez <amigo.cobos@gmail.com>
See: http://foundation.zurb.com/docs/components/dropdown.html
Located at widgets/Dropdown.php

Methods summary

public
# init( )

Initializes the widget

Initializes the widget

Overrides

foundation\widgets\base\Widget::init
public
# run( )

Renders the widget

Renders the widget

protected string
# renderItems( )

Renders dropdown items

Renders dropdown items

Returns

string

Throws

InvalidConfigException

Methods inherited from foundation\widgets\base\Widget

display(), registerAssets(), registerEvents(), registerPlugin()

Magic methods summary

Properties summary

public array $items
#

list of menu items in the dropdown. Each array element represents a single menu with the following structure:

  • label: string, required, the label of the item link
  • url: string, optional, the url of the item link. Defaults to "#".
  • linkOptions: array, optional, the HTML attributes of the item link.
  • options: array, optional, the HTML attributes of the item.

If its a content dropdown style, this property will be ignored and will $dropdownContent used instead.

list of menu items in the dropdown. Each array element represents a single menu with the following structure:

  • label: string, required, the label of the item link
  • url: string, optional, the url of the item link. Defaults to "#".
  • linkOptions: array, optional, the HTML attributes of the item link.
  • options: array, optional, the HTML attributes of the item.

If its a content dropdown style, this property will be ignored and will $dropdownContent used instead.

public string $dropdownContent
#

the content to be rendered if $type = '

the content to be rendered if $type = '

public string $type
#

$type the type of dropdown, whether is Enum::DROPDOWN_CONTENT or Enum::DROPDOWN_LIST

$type the type of dropdown, whether is Enum::DROPDOWN_CONTENT or Enum::DROPDOWN_LIST

public boolean $encodeLabels
#

whether the labels for header items should be HTML-encoded.

whether the labels for header items should be HTML-encoded.

Properties inherited from foundation\widgets\base\Widget

$assets, $htmlOptions, $links

YiiFoundation API documentation generated by ApiGen 2.8.0