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

Set dafult checked or unchecked for ActiveQueryCheckboxInjector injector #123

Open
deea0911 opened this issue Jul 25, 2018 · 2 comments
Open
Assignees

Comments

@deea0911
Copy link

deea0911 commented Jul 25, 2018

For example I have
'activityData' => new \luya\cms\injectors\ActiveQueryCheckboxInjector([
'query' => Activity::find()->where(['=', 'hidden', 0]),
'label' => 'title',
'type' => self::INJECTOR_VAR,
'varLabel' => 'Select Activity', // The Block form label
]),
And now it shows me all the data but unchecked ,can we have an option in case I want all the data checked by default ?

@nadar nadar self-assigned this Jul 25, 2018
@nadar
Copy link
Member

nadar commented Jul 25, 2018

So you want to check ALL data by default? Not a given liste of ids?

@deea0911
Copy link
Author

I think it's even better to check a list of ids because I can send all the ids if I want to in order to check them all , or just check some of them.

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

2 participants