Property | Type | Description | |
---|---|---|---|
$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 |
Property | Type | Description | |
---|---|---|---|
$options | array | the array to configure the js component. |
Method | Description | |
---|---|---|
init ( ) | ### .init() | |
registerClientScript ( string $id ) | ### .registerClientScript() | |
renderContent ( integer $id, string $name ) : string | ### .renderContent() | |
run ( ) | ### .run() |
public registerClientScript ( string $id ) | ||
$id | string |
public bool $displayPopovers | ||
return | boolean |
... 'whenAddingTag' => 'js:function(tag){ console.log(tag);}', ...
public $events |
public $form |
protected array $options | ||
return | array |
public $popoverData |
public string $promptText | ||
return | string |
public array $suggestions | ||
return | array |
public string $tagClass | ||
return | string |