luya-module-cms icon indicating copy to clipboard operation
luya-module-cms copied to clipboard

Set dafult checked or unchecked for ActiveQueryCheckboxInjector injector

Open deea0911 opened this issue 7 years ago • 2 comments

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 ?

deea0911 avatar Jul 25 '18 12:07 deea0911

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

nadar avatar Jul 25 '18 12:07 nadar

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.

deea0911 avatar Jul 25 '18 13:07 deea0911