public function checkbox( $name_id, $checked = false )
    {
        $el = $this->element( 'input', $name_id, 'checkbox' )
            ->value( 1 )
            ->attribute( 'checked', $checked ? 'checked' : null );
        return $el;
    }
public function checkbox( $name_id, $checked = false )
    {
        $el = $this->element( 'input', $name_id, 'checkbox' )
            ->value( 1 )
            ->attribute( 'checked', $checked ? 'checked' : null );
        return $el;
    }
public function checkbox ( $ name_id , $ checked = false ) { $ el = $ this -> element ( 'input' , $ name_id , 'checkbox' ) -> value ( 1 ) -> attribute ( 'checked' , $ checked ? 'checked' : null ) ; return $ el ; }
Creates a checkbox.

@param $name
@param $label
@param null $cssClasses
@param bool $checked
@param null $value
@return array|HtmlElementsCollection
Creates a checkbox .