clevertech/YiiBooster — pull request #54 by yii-joblo (2012-10-22 11:22:12+00:00)
Title: Added support for custom widget element types

The most extension widgets doesn't support rendering inside a bootstrap form.
Now they can be used as formbuilder elements to.

Autowrap control-group/controls tags arround the custom widgets and sets the "control-label" class.

Set 'wrapBootstrapTags' => false if the extensions supports bootstrap layout.

No warranty for all widget extensions ...
Tested with datetimepicker and select2 extension.

```php
elements => array(
...
'datetime' => array(
'type' => 'ext.datetimepicker.CJuiDateTimePicker',
'hint' => 'Pick a datetime',
//'wrapBootstrapTags' => false,
'model'=>$model,
'mode'=>'datetime',
),

'tags' => array(
'type' => 'ext.select2.ESelect2',
'hint' => 'Add tags',
//'wrapBootstrapTags' => false,
'htmlOptions'=>array('style'=>'width: 400px'),
'model'=>$model,
'data'=>array('Something ...', '1', '2', '3', '4', '5'),
),
...
```