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 TabHelper

Flexible plugin that utilizes a handful of classes for easy toggle behavior.

<?php
echo $this->Cakestrap->Tab()
                     ->nav('Tab 1')
                     ->content("This Tab 1  needs your attention, but it's not super important.")
                     ->prepare($isActive = true)

                     ->nav('Tab 2')
                     ->content("This Tab 2 needs your attention, but it's not super important.")
                     ->prepare()

                     ->set()

?>
Cake\View\Helper
Extended by Cakestrap\View\Helper\Basic
Extended by Cakestrap\View\Helper\TabHelper
Namespace: Cakestrap\View\Helper
Package: Cakestrap\View\Helper
Located at TabHelper.php
Methods summary
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
public object
# prepare( boolean $isActive = false )

Prepare the template content

Prepare the template content

Parameters

$isActive
Set item active or inactive

Returns

object
$this
protected
# _reset( )

Now we need to reset the values to support multiple tab helper in a page.

Now we need to reset the values to support multiple tab helper in a page.

Overrides

Cakestrap\View\Helper\Basic::_reset()
protected
# _addToContainer( )

Add collapse items to parent container

Add collapse items to parent container

protected
# _setNav( )

Set nav template

Set nav template

protected
# _setTab( )

Set tab template

Set tab template

protected string
# _insertNavContent( )

Insert nav content

Insert nav content

Returns

string
$navContent
protected string
# _insertTabContent( )

Insert tab content

Insert tab content

Returns

string
$tabContent
protected array
# _contents( )

Tab contents

Tab contents

Returns

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

Parameters

$content

Returns

public
# nav( string $nav )

Parameters

$nav

Returns

Properties summary
protected array $_prepare

Mark the content as new set

Mark the content as new set

# []
protected string $_active

Contain active string value

Contain active string value

# null
protected $_target
#
Properties inherited from Cakestrap\View\Helper\Basic
$_clone, $_contents, $_options, $_stringTemplate, $_template
API documentation generated by ApiGen