Methods summary
public
integer
|
#
getDefaultFlags( )
The default flags inherited by widget generated by this factory.
The default flags inherited by widget generated by this factory.
Returns
integer
Api
|
public
Nethgui\Renderer\WidgetFactoryInterface
|
#
setDefaultFlags( integer $flags )
The default flags inherited by widget generated by this factory.
The default flags inherited by widget generated by this factory.
Parameters
Returns
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
inset( string $name, integer $flags = 0 )
Include a view element that is a sub-view
Include a view element that is a sub-view
Parameters
- $name
- The view member name
- $flags
- Optional {STATE_DISABLED}
Returns
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
textInput( string $name, integer $flags = 0 )
Create a text input control
Create a text input control
Parameters
- $name
- The view member name
- $flags
- Optional {STATE_DISABLED}
Returns
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
textLabel( string $name, integer $flags = 0 )
Create a text label.
Parameters
- $name
- The view member name to generate the label contents
- $flags
- Optional {STATE_DISABLED}
Returns
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
fieldset( string $name = NULL, integer $flags = 0 )
Create a fieldset container
Create a fieldset container
Parameters
- $name
- OPTIONAL - The view member passed as argument for the "template" attribute.
- $flags
- OPTIONAL - flags
Returns
See
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
hidden( string $name, integer $flags = 0 )
Create an hidden control
Parameters
- $name
- The view member name
- $flags
- Optional {STATE_DISABLED}
Returns
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
selector( string $name, integer $flags = 0 )
Create a selector control
Create a selector control
Parameters
- $name
- The view member name holding the selected value(s)
- $flags
Returns
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
button( string $name, integer $flags = 0 )
Create a button control
Parameters
- $name
- The view member name
- $flags
- Optional
Returns
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
radioButton( string $name, string $value, integer $flags = 0 )
Create a radio button control
Create a radio button control
Parameters
- $name
- The view member name
- $value
- The value assigned to the control, when selected.
- $flags
- Optional {STATE_DISABLED, STATE_CHECKED}
Returns
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
checkBox( string $name, string $value, integer $flags = 0 )
Create a checkbox control
Create a checkbox control
Optionally specify the "uncheckedValue" to get a value from the form
when the checkbox is unchecked.
Parameters
- $name
- The view member name
- $value
- The value assigned to the control, when checked.
- $flags
- Optional {STATE_DISABLED, STATE_CHECKED}
Returns
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
fieldsetSwitch( string $name, string $value, integer $flags = 0 )
Create a selectable fieldset container
Create a selectable fieldset container
Set FIELDSETSWITCH_CHECKBOX flag to get a checkbox switch, otherwise
a radioButton is rendered
Set FIELDSETSWITCH_EXPANDABLE flag to fold out the fieldset, when
selected
Parameters
Returns
See
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
tabs( integer $flags = 0 )
Create a tabs container.
Parameters
Returns
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
form( integer $flags = 0 )
Create a simple form container.
Create a simple form container.
Parameters
- $flags
- Optional - {STATE_DISABLED}
Returns
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
panel( integer $flags = 0 )
Create a panel container
Parameters
Returns
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
elementList( integer $flags = 0 )
Create a list of elements
Create a list of elements
Add the actual elements invoking the insert() operation of the returned object.
Parameters
Returns
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
buttonList( integer $flags = 0 )
Create a list of button elements
Create a list of button elements
Add the actual elements invoking the insert() operation of the returned object.
Parameters
Returns
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
literal( string|object|Nethgui\View\ViewInterface $data, $flags = 0 )
Create literal data - helper.
Create literal data - helper.
Parameters
- $data
- Can be a string, any object implementing toString() method, or a View.
- $flags
Returns
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
columns( )
Create a column container - helper.
Create a column container - helper.
Add the actual columns through the insert() operation of the returned object
Returns
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
progressbar( $name, $flags = 0 )
Create a progress bar
- name View member holding the percent value Int range [0, 100]
Returns
See
554
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
textArea( string $name, integer $flags = 0 )
Create a text area
Attributes:
- dimensions
- appendOnly
Parameters
Returns
See
556
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
collectionEditor( string $name, integer $flags = 0 )
A javascript-configurable object collection editor, with a TEXTAREA
backend.
A javascript-configurable object collection editor, with a TEXTAREA
backend.
Parameters
Returns
See
1446
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
console( $name, $flags = 0 )
Create a console-like text area
Create a console-like text area
Returns
See
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
dateInput( $name, $flags )
Create a date picker widget:
Create a date picker widget:
Attributes:
- class (string) "Date " plus one of "be" (default), "me", "le".
Returns
See
474
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
timeInput( $name, $flags )
Create a time picker widget:
Create a time picker widget:
Attributes:
- class (string) "Time " plus one of "hm" or "hms"
Returns
Since
1.7
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
objectPicker( $name = NULL, $flags = 0 )
Pick/selects objects from a collection
Pick/selects objects from a collection
Returns
See
WidgetFactoryInterface::selector()
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
slider( $name, $flags )
Select a value in the given range.
Select a value in the given range.
Set attributes
- min
- max
- step
Returns
See
Feature #1242
Api
|
public
Nethgui\Renderer\WidgetInterface
|
#
textList( string $name, integer $flags = 0 )
Create a text list widget
Create a text list widget
Parameters
- $name
- A view element containing an array value
- $flags
Returns
Api
|
public
|
#
objectsCollection( string $name, integer $flags = 0 )
Create widget that renders the given collection applying a specific template
Create widget that renders the given collection applying a specific template
Parameters
- $name
- A view element containing the collection data source
- $flags
|
public
|
#
fileUpload( string $name, integer $flags = 0 )
Create a file upload widget
Create a file upload widget
Parameters
|