\Hazaar\View\Widgets
Tab

Tabs widget.

Tags

Since

1.1

Summary
Methods Properties Constants
get
key
set
No constants
Properties
$label
$label
$source
$source
Inherited
$type
$type
Methods
__construct()
__construct($label, $content = null, $params = Array ( ) ) : \\Hazaar\\Widgets\\Tab

Creates a new tab item for use in a Tabs widget

Tags

Since

1.1

Parameters

$labelstring

The label for the tab

$contentmixed

Any content to display inside the tab. Can be text or HTML objects.

$paramsarray

Any additional parameters to set on the tabs

Returns

\\Hazaar\\Widgets\\Tab
canSelect()
canSelect($value) : \\Hazaar\\Widgets\\Tab

Set whether the tab can be selected.

Tags

Since

1.1

Parameters

$value

No description

Returns

\\Hazaar\\Widgets\\Tab
hasCloseButton()
hasCloseButton($value = true) : \\Hazaar\\Widgets\\Tab

Set whether the tab has a close button or not.

Tags

Since

1.1

Parameters

$value

No description

Returns

\\Hazaar\\Widgets\\Tab
source()
source($url) : \\Hazaar\\Widgets\\Tab

Set the source URL for tab content

Tags

Since

1.1

Parameters

$urlstring

The source URL.

Returns

\\Hazaar\\Widgets\\Tab
Inherited
current()
current()
Inherited
get()
get() : array

Get the contents of the block.

Tags

Since

2.0.0

Returns

array
Inherited
key()
key()
Inherited
next()
next()
Inherited
offsetExists()
offsetExists($key)

Parameters

$key

No description

Inherited
offsetGet()
offsetGet($key)

Parameters

$key

No description

Inherited
offsetSet()
offsetSet($key, $value)

Parameters

$key

No description

$value

No description

Inherited
offsetUnset()
offsetUnset($key)

Parameters

$key

No description

Inherited
prepend()
prepend($element) : \\Hazaar\\Html\\Block

Prepend an element to the beginning of the contents.

Tags

Since

1.0.0

Parameters

$element

No description

Returns

\\Hazaar\\Html\\Block
Inherited
renderElement()
renderElement($element) : string

Recursively render a child element.

Tags

Since

1.0.0

Parameters

$elementmixed

The element to render. Can be anything that can be converted to a string, or an array of other elements.

Returns

string
Inherited
renderObject()
renderObject() : string

Render the current object as an HTML string.

Tags

Since

1.0.0

Returns

string
Inherited
rewind()
rewind()
Inherited
set()
set() : \\Hazaar\\Html\\Block

Set one or more elements as the contents of the block.

Tags

Since

1.0.0

Inherited
valid()
valid()