Fichier: /pages/tutorials/table/table-07.php
<?php class Table07 extends Page { public function InitializeComponent() { parent::$PAGE_TITLE = "Tutorial : Advance Table with column filter"; $this->render = new Table(); $this->render->setId("users_table_07"); $this->render->setDefaultAlign(RowTable::ALIGN_CENTER); $column_filter_params = "{ type: 'text' }, { type: 'select', bRegex:true, values: [ {value: '^Man', label: 'Man'}, 'Woman' ] }, { type: 'number-range' }"; $this->render->activateColumnsFilter( $column_filter_params, Table::COL_FILTER_POSITION_TOP); $header = $this->render->addRowColumns("Name", "Sex", "Age"); $header->setHeaderClass(0); $header->setColumnWidth(3, 160); $this->render->addRowColumns("Toto", "Man", 23); $this->render->addRowColumns("Tata", "Woman", 45); $this->render->addRowColumns("Titi", "Man", 32); } } ?>
Retourner aux tutoriels du composants Table
|