Skip to content

Deprecated since 7.2

This page documents the classic module layer (CBController and cbInit()). It still works in every 7.x release, but new code should use resources and pages.

Use instead: CheckboxList::make('tags')->relationship('tags', 'name').

Checkbox Form Type ​

Checkbox With Your Own Enum ​

php
$this->form[] = ['label'=>'Platform','name'=>'platform','type'=>'checkbox','dataenum'=>'Android;IOS;Website'];

Checkbox With Looking Up Table ​

php
$this->form[] = ['label'=>'Platform','name'=>'platform','type'=>'checkbox','datatable'=>'platform,name'];

Legend ​

Attribute NameExample
dataenumAndroid;Ios;Website . sparate with comma
datatabletable_name,field_name . field_name is field that want to show as label

What's Next ​

Table Of Contents ​

Released under the MIT License.