public function addSelectable($field)
    {
        $this->js_widget = null;
        $this->js(true)
            ->_load('ui.atk4_checkboxes')
            ->atk4_checkboxes(array('dst_field' => $field));
        $this->addColumn('checkbox', 'selected');

        $this->addOrder()
            ->useArray($this->columns)
            ->move('selected', 'first')
            ->now();
    }
public function addSelectable($field)
    {
        $this->js_widget = null;
        $this->js(true)
            ->_load('ui.atk4_checkboxes')
            ->atk4_checkboxes(array('dst_field' => $field));
        $this->addColumn('checkbox', 'selected');

        $this->addOrder()
            ->useArray($this->columns)
            ->move('selected', 'first')
            ->now();
    }
public function addSelectable ( $ field ) { $ this -> js_widget = null ; $ this -> js ( true ) -> _load ( 'ui.atk4_checkboxes' ) -> atk4_checkboxes ( array ( 'dst_field' => $ field ) ) ; $ this -> addColumn ( 'checkbox' , 'selected' ) ; $ this -> addOrder ( ) -> useArray ( $ this -> columns ) -> move ( 'selected' , 'first' ) -> now ( ) ; }
Adds column with checkboxes on the basis of Model definition.

@param mixed $field should be Form_Field object or jQuery selector of
1 field. When passing it as jQuery selector don't
forget to use hash sign like "#myfield"
Adds column with checkboxes on the basis of Model definition .