Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TbSelect2 issues #247

Closed
falk opened this issue Jan 11, 2013 · 0 comments
Closed

TbSelect2 issues #247

falk opened this issue Jan 11, 2013 · 0 comments
Milestone

Comments

@falk
Copy link

falk commented Jan 11, 2013

https://github.com/clevertech/YiiBooster/blob/master/widgets/TbSelect2.php#L40 disallows empty data, this is however needed in my case where I populate the dropdown using an separate ajax call (chanined select boxes).

Could you add an option to allow empty data initialization?

It would also be nice if the widget added the needed empty extra option if placeholder is defined, like http://www.yiiframework.com/extension/select2/ does:

if (isset($this->options['placeholder']))
            $data[''] = '';
        $this->data = $data + $this->data;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant