WebSite-PHP Framework PHP
Multi langues
Mode Ajax simple
Aucun HTML, aucun JavaScript
URL rewrinting
Envoi d'email
Sitemap - RSS - Web service
Télécharger le Framework WebSite-PHP maintenant
 


Loading
 


Tutorial : Advance Table 
with column filter

Tutoriels

>

Tutoriel Table

>

Tutorial : Advance Table with column filter


Table-07: Tutoriel du composants Table du FrameWork PHP WebSite-PHP.

Tutorial : Advance Table with column filter:

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


Retourner aux tutoriels du composants Table



Code source

Code source


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_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);
    }
}
?>


Retourner aux tutoriels du composants Table


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Accueil Documentation Télécharger Quick start Tutoriels Wiki Issue Tracker