PHP Class View_Columns, atk4

Use: 12-GS: $cols=$this->add('Columns'); $cols->addColumn(4)->add('LoremIpsum'); $cols->addColumn(6)->add('LoremIpsum'); $cols->addColumn(2)->add('LoremIpsum'); Flexible $cols=$this->add('Columns'); $cols->addColumn('10%')->add('LoremIpsum'); $cols->addColumn('90%')->add('LoremIpsum'); Auto $cols=$this->add('Columns'); $cols->addColumn()->add('LoremIpsum'); $cols->addColumn()->add('LoremIpsum'); $cols->addClass('atk-cells-gutter-large')
Inheritance: extends View
Mostrar archivo Open project: atk4/atk4

Public Properties

Property Type Description
$mode

Public Methods

Method Description
addColumn ( integer | string $width = 'auto' ) : View Adds new column to the set.
defaultTemplate ( ) : array | string
setGutter ( string $size = '' )

Method Details

addColumn() public method

Argument can be numeric for 12GS, percent for flexi design or omitted for equal columns.
public addColumn ( integer | string $width = 'auto' ) : View
$width integer | string
return View

defaultTemplate() public method

public defaultTemplate ( ) : array | string
return array | string

setGutter() public method

public setGutter ( string $size = '' )
$size string

Property Details

$mode public_oe property

public $mode