src/Table/Renderer/Bootstrap.php
public function remote_boolean(Column\RemoteBoolean $column, array $row)
    {

        $table = $column->getTable();

        // Attributes
        $attributes = [
            'class' => 'ff-remote-boolean make-switch',
            'type' => 'checkbox',
            'data-size' => 'small',
            'value' => true,
            'data-id' => $row[$column->getTable()->getIdField()],
            'data-column' =>  $column->getName(),
        ];

        if(isset($row[$column->getName()]) && !empty($row[$column->getName()])) {
            $attributes['checked'] = 'checked';
        }


        $html = html('input', $attributes);

        return $this->post($html, $column, $row);
    }
public function remote_boolean(Column\RemoteBoolean $column, array $row)
    {

        $table = $column->getTable();

        // Attributes
        $attributes = [
            'class' => 'ff-remote-boolean make-switch',
            'type' => 'checkbox',
            'data-size' => 'small',
            'value' => true,
            'data-id' => $row[$column->getTable()->getIdField()],
            'data-column' =>  $column->getName(),
        ];

        if(isset($row[$column->getName()]) && !empty($row[$column->getName()])) {
            $attributes['checked'] = 'checked';
        }


        $html = html('input', $attributes);

        return $this->post($html, $column, $row);
    }
public function remote_boolean ( Column \ RemoteBoolean $ column , array $ row ) { $ table = $ column -> getTable ( ) ; // Attributes $ attributes = [ 'class' => 'ff-remote-boolean make-switch' , 'type' => 'checkbox' , 'data-size' => 'small' , 'value' => true , 'data-id' => $ row [ $ column -> getTable ( ) -> getIdField ( ) ] , 'data-column' => $ column -> getName ( ) , ] ; if ( isset ( $ row [ $ column -> getName ( ) ] ) && ! empty ( $ row [ $ column -> getName ( ) ] ) ) { $ attributes [ 'checked' ] = 'checked' ; } $ html = html ( 'input' , $ attributes ) ; return $ this -> post ( $ html , $ column , $ row ) ; }
render boolean switch

@param \FrenchFrogs\Table\Column\BooleanSwitch $column
@param array $row
@return string
render boolean switch