luyadev / luya-module-cms

The LUYA CMS module provides a full functional CMS for adding contents based on blocks.
https://luya.io
MIT License
33 stars 46 forks source link

Set dafult checked or unchecked for ActiveQueryCheckboxInjector injector #123

Open deea0911 opened 6 years ago

deea0911 commented 6 years ago

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 commented 6 years ago

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

deea0911 commented 6 years ago

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.