LimeSurvey API - Master branch

ButtonGroupWidget extends CInputWidget
in package

Creates a Buttongroup that behaves like a switch with radio input type

Table of Contents

Properties

$ariaLabel  : string
$checkedOption  : array<string|int, mixed>
$htmlOptions  : array<string|int, mixed>
$selectOptions  : array<string|int, mixed>

Methods

init()  : mixed
Initializes the widget
registerClientScript()  : mixed
Registers required script files
renderButtons()  : mixed
Renders the button group
run()  : mixed
Executes the widget

Properties

$checkedOption

public array<string|int, mixed> $checkedOption = ''

the value that is currently checked/selected

$selectOptions

public array<string|int, mixed> $selectOptions = []

Available buttons as value=>caption array

Methods

registerClientScript()

Registers required script files

public registerClientScript() : mixed

        
On this page

Search results