PHP Класс TbTags

Автор: Antonio Ramirez ([email protected])
Наследование: extends CInputWidget
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$displayPopovers boolean whether to display popovers with information or not
$events the JavaScript event handlers. The events are on the format:
...
   'whenAddingTag' => 'js:function(tag){ console.log(tag);}',
...
$exclude array
$form when created via TbActiveForm This attribute is set to the form that renders the widget
$popoverData list of popover messages that should be displayed with the tags initially displayed. Note: Is important that the list matches the index list of those tags in $tagData.
$promptText string placeholder string when the re are no tags and nothing typed in
$restrictTo array
$suggestions array Suggestions for generating the list options: array('A','B','C')
$tagClass string what class the tag div will have for styling. Defaults to btn-success
$tagData list of tags to display initially display

Защищенные свойства (Protected)

Свойство Тип Описание
$options array the array to configure the js component.

Открытые методы

Метод Описание
init ( ) ### .init()
registerClientScript ( string $id ) ### .registerClientScript()
renderContent ( integer $id, string $name ) : string ### .renderContent()
run ( ) ### .run()

Описание методов

init() публичный Метод

Initializes the widget.
public init ( )

registerClientScript() публичный Метод

Registers required client script for bootstrap select2. It is not used through bootstrap->registerPlugin in order to attach events if any
public registerClientScript ( string $id )
$id string

renderContent() публичный Метод

Renders required HTML tags
public renderContent ( integer $id, string $name ) : string
$id integer
$name string
Результат string with HTML tags

run() публичный Метод

Runs the widget.
public run ( )

Описание свойств

$displayPopovers публичное свойство

whether to display popovers with information or not
public bool $displayPopovers
Результат boolean

$events публичное свойство

the JavaScript event handlers. The events are on the format:
...
   'whenAddingTag' => 'js:function(tag){ console.log(tag);}',
...
См. также:
public $events

$exclude публичное свойство

public array $exclude
Результат array

$form публичное свойство

when created via TbActiveForm This attribute is set to the form that renders the widget
public $form

$options защищенное свойство

the array to configure the js component.
protected array $options
Результат array

$popoverData публичное свойство

list of popover messages that should be displayed with the tags initially displayed. Note: Is important that the list matches the index list of those tags in $tagData.
public $popoverData

$promptText публичное свойство

placeholder string when the re are no tags and nothing typed in
public string $promptText
Результат string

$restrictTo публичное свойство

public array $restrictTo
Результат array

$suggestions публичное свойство

Suggestions for generating the list options: array('A','B','C')
public array $suggestions
Результат array

$tagClass публичное свойство

what class the tag div will have for styling. Defaults to btn-success
public string $tagClass
Результат string

$tagData публичное свойство

list of tags to display initially display
public $tagData