\Hazaar\View\Helper
Widget
The Widget UI framework View Helper

HazaarMVC has full support for the jqWidgets library of JavaScript widgets and supplied wrapper objects for all widgets. This view helper provides shortcuts to creating jqWidgets objects from inside a view.

Tags

Since

1.0.0

Summary
Methods Properties Constants
No constants
Properties
Inherited
$args
$args
Inherited
$view
$view
Methods
button()
button($name, $text = 'Button', $style = null, $params = Array ( ) ) : \\Hazaar\\Widgets\\Button

Returns a jqxButton object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$text

No description

$style

No description

$params

No description

Returns

\\Hazaar\\Widgets\\Button
buttongroup()
buttongroup($name, $buttons = Array ( ) , $params = Array ( ) ) : \\Hazaar\\Widgets\\Button\\Group

Returns a jqxButtonGroup object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$buttons

No description

$params

No description

Returns

\\Hazaar\\Widgets\\Button\\Group
calendar()
calendar($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\Calendar

Returns a jqxCalendar object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\Calendar
chart()
chart($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\Chart

Returns a jqxChart object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\Chart
checkbox()
checkbox($name, $text = 'Checkbox', $params = Array ( ) ) : \\Hazaar\\Widgets\\Button\\Checkbox

Returns a jqxCheckBox object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$text

No description

$params

No description

Returns

\\Hazaar\\Widgets\\Button\\Checkbox
colorpicker()
colorpicker($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\ColorPicker

Returns a jqxColorPicker object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\ColorPicker
combobox()
combobox($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\ComboBox

Returns a jqxComboBox object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\ComboBox
dataadapter()
dataadapter($source, $settings = Array ( ) ) : \\Hazaar\\Widgets\\DataAdapter

Returns a DataAdapter object

Tags

Since

1.0.0

Parameters

$source

No description

$settings

No description

Returns

\\Hazaar\\Widgets\\DataAdapter
datasource()
datasource($values = Array ( ) ) : \\Hazaar\\Widgets\\DataSource

Returns a DataSource object

Tags

Since

1.0.0

Parameters

$values

No description

Returns

\\Hazaar\\Widgets\\DataSource
datetimeinput()
datetimeinput($name, $value = null, $params = Array ( ) ) : \\Hazaar\\Widgets\\DateTimeInput

Returns a jqxDateTimeInput object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$value

No description

$params

No description

Returns

\\Hazaar\\Widgets\\DateTimeInput
docking()
docking($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\Docking

Returns a jqxDocking object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\Docking
dropdownbutton()
dropdownbutton($name, $content, $params = Array ( ) ) : \\Hazaar\\Widgets\\Button\\DropDown

Returns a jqxDropDownButton object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$content

No description

$params

No description

Returns

\\Hazaar\\Widgets\\Button\\DropDown
dropdownlist()
dropdownlist($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\DropDownList

Returns a jqxDropDownList object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\DropDownList
editor()
editor($name, $content = null, $params = Array ( ) ) : \\Hazaar\\Widgets\\Editor

Returns a Editor object

Tags

Since

2.0.0

Parameters

$namestring

The name of the editor widget.

$contentstring

The initial contents of the editor

$paramsarray

Any additional parameters to set on the DIV container

Returns

\\Hazaar\\Widgets\\Editor
expander()
expander($name, $title = null, $content = null, $params = Array ( ) ) : \\Hazaar\\Widgets\\Expander

Returns a jqxExpander object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$title

No description

$content

No description

$params

No description

Returns

\\Hazaar\\Widgets\\Expander
gauge()
gauge($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\Gauge

Returns a jqxGauge object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\Gauge
getVersion()
getVersion($assoc = false) : mixed

Returns the version of jQWidgets currently being loaded.

Tags

Since

1.2

Parameters

$assocboolean

Return the version as an associative array with values for major, minor and revision. Defaults to false.

Returns

mixed

String normally. Array when $assoc is true. Returns null when the version can no be detected.

grid()
grid($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\Grid

Returns a Grid object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\Grid
import()
import()
init()
init($view, $args = Array ( ) )

Parameters

$view

No description

$args

No description

input()
input($name, $value = null, $button = null, $params = Array ( ) , $input_type = 'text', $element_type = 'input') : \\Hazaar\\Widgets\\Input

Returns a jqxInput object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$value

No description

$button

No description

$params

No description

$input_type

No description

$element_type

No description

Returns

\\Hazaar\\Widgets\\Input
javascript()
javascript($code, $arglist = Array ( ) , $params = Array ( ) ) : \\Hazaar\\Widgets\\JavaScriptFunction

Returns a JavaScriptFunction object

Tags

Since

1.0.0

Parameters

$codestring

The JavaScript code.

$arglist

No description

$params

No description

Returns

\\Hazaar\\Widgets\\JavaScriptFunction
linkbutton()
linkbutton($name, $link, $text = 'Button', $params = Array ( ) ) : \\Hazaar\\Widgets\\Button\\Link

Returns a jqxLinkButton object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$link

No description

$text

No description

$params

No description

Returns

\\Hazaar\\Widgets\\Button\\Link
listbox()
listbox($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\ListBox

Returns a jqxListBox object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\ListBox
listmenu()
listmenu($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\ListMenu

Returns a jqxListMenu object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\ListMenu
maskedinput()
maskedinput($name, $value = null, $params = Array ( ) ) : \\Hazaar\\Widgets\\MaskedInput

Returns a jqxMaskedInput object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$value

No description

$params

No description

Returns

\\Hazaar\\Widgets\\MaskedInput
menu()
menu($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\Menu

Returns a jqxMenu object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\Menu
navigationbar()
navigationbar($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\NavigationBar

Returns a jqxNavigationBar object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\NavigationBar
numberinput()
numberinput($name, $value = null, $params = Array ( ) ) : \\Hazaar\\Widgets\\NumberInput

Returns a jqxNumberInput object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$value

No description

$params

No description

Returns

\\Hazaar\\Widgets\\NumberInput
panel()
panel($name, $content = null, $params = Array ( ) ) : \\Hazaar\\Widgets\\Panel

Returns a jqxPanel object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$content

No description

$params

No description

Returns

\\Hazaar\\Widgets\\Panel
passwordInput()
passwordInput($name, $value = null, $button = null, $params = Array ( ) , $input_type = 'text', $element_type = 'input') : \\Hazaar\\Widgets\\Input

Returns a jqxPasswordInput object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$value

No description

$button

No description

$params

No description

$input_type

No description

$element_type

No description

Returns

\\Hazaar\\Widgets\\Input
progressbar()
progressbar($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\ProgressBar

Returns a jqxProgressBar object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\ProgressBar
radiobutton()
radiobutton($name, $text = 'Button', $params = Array ( ) ) : \\Hazaar\\Widgets\\Button\\Radio

Returns a jqxRadioButton object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$text

No description

$params

No description

Returns

\\Hazaar\\Widgets\\Button\\Radio
rating()
rating($name, $value = null, $params = Array ( ) ) : \\Hazaar\\Widgets\\Rating

Returns a jqxRating object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$value

No description

$params

No description

Returns

\\Hazaar\\Widgets\\Rating
repeatbutton()
repeatbutton($name, $text = 'Button', $params = Array ( ) ) : \\Hazaar\\Widgets\\Button\\Repeat

Returns a jqxRepeatButton object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$text

No description

$params

No description

Returns

\\Hazaar\\Widgets\\Button\\Repeat
scrollbar()
scrollbar($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\ScrollBar

Returns a jqxScrollBar object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\ScrollBar
scrollview()
scrollview($name, $items = Array ( ) , $params = Array ( ) ) : \\Hazaar\\Widgets\\ScrollView

Returns a jqxScrollView object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$items

No description

$params

No description

Returns

\\Hazaar\\Widgets\\ScrollView
slider()
slider($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\Slider

Returns a jqxSlider object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\Slider
splitter()
splitter($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\Splitter

Returns a jqxSplitter object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\Splitter
switchbutton()
switchbutton($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\Button\\SwitchButton

Returns a jqxSwitchButton object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\Button\\SwitchButton
tabs()
tabs($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\Button

Returns a jqxButton object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\Button
togglebutton()
togglebutton($name, $text = 'Button', $params = Array ( ) ) : \\Hazaar\\Widgets\\Button\\Toggle

Returns a jqxToggleButton object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$text

No description

$params

No description

Returns

\\Hazaar\\Widgets\\Button\\Toggle
tooltip()
tooltip($object, $params = Array ( ) ) : \\Hazaar\\Widgets\\Tooltip

Returns a jqxTooltip object

Tags

Since

1.0.0

Parameters

$object

No description

$params

No description

Returns

\\Hazaar\\Widgets\\Tooltip
tree()
tree($name, $params = Array ( ) ) : \\Hazaar\\Widgets\\Tree

Returns a jqxTree object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$params

No description

Returns

\\Hazaar\\Widgets\\Tree
treeitem()
treeitem($name, $label, $expanded = null, $params = Array ( ) )

Parameters

$name

No description

$label

No description

$expanded

No description

$params

No description

window()
window($name, $content = null, $title = null, $params = Array ( ) ) : \\Hazaar\\Widgets\\Window

Returns a jqxWindow object

Tags

Since

1.0.0

Parameters

$namestring

The name of the element. Prefix ‘#’ to refer to an existing element.

$content

No description

$title

No description

$params

No description

Returns

\\Hazaar\\Widgets\\Window