Свойство | Тип | Описание | |
---|---|---|---|
$itemOptions | list of HTML attributes for the item container tags. This will be overwritten by the "options" set in individual [[items]]. The following special options are recognized: - tag: string, defaults to "li", the tag name of the item container tags. | ||
$items | list of selectable items. Each item can be a string representing the item content or an array of the following structure: ~~~ [ 'content' => 'item content', the HTML attributes of the item container tag. This will overwrite "itemOptions". 'options' => [], ] ~~~ | ||
$mode | the mode used to render the widget. | ||
$options | the HTML attributes for the widget container tag. The following special options are recognized: - tag: string, defaults to "ul", the tag name of the container tag of this widget. |
Метод | Описание | |
---|---|---|
begin ( array $config = [] ) : static | Begins a widget. | |
init ( ) | Initializes the widget. | |
renderItems ( ) : string | Renders selectable items as specified on [[items]]. | |
run ( ) | Renders the widget. |
public renderItems ( ) : string | ||
Результат | string | the rendering result. |
public $itemOptions |
public $items |