WebSite-PHP Framework PHP
Mehrsprachig
Einfacher Ajax Modus
Kein HTML, kein JavaScript
URL Rewriting
Mails senden
Sitemap - RSS - Web service
Laden Sie WebSite-PHP FrameWork jetzt herunter
 


Loading
 


Tutorial : Advance Table 
with column filter

Tutorials

>

Tutorial Table

>

Tutorial : Advance Table with column filter


Table-07: Tutorial der Komponente Table vom PHP FrameWork WebSite-PHP.

Tutorial : Advance Table with column filter:

Name
Sex
Age
Toto
Man
23
Tata
Woman
45
Titi
Man
32


Zurück zum Tutorial der Komponente Table



Quelltext

Quelltext


Datei: /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_paramsTable::COL_FILTER_POSITION_TOP);
        
        
$header $this->render->addRowColumns("Name"
                                            
"Sex""Age");
        
$header->setHeaderClass(0);
        
$header->setColumnWidth(3160);
        
        
$this->render->addRowColumns("Toto""Man"23);
        
$this->render->addRowColumns("Tata""Woman"45);
        
$this->render->addRowColumns("Titi""Man"32);
    }
}
?>


Zurück zum Tutorial der Komponente Table


Share

 


Copyright © 2009-2016 WebSite-PHP Framework PHP
Start Dokumentation Herunterladen Schnellstart Tutorials Wiki Issue Tracker