BEST Offers , For All Sximo 5 LTS licence Holer , Upgrade Licence For only $14 Normal Price on Codecanyon $31
New product Sximopress ( Wordpress Builder ) 1.0 has been realesed . download it now !

S5 Ultimate

The Real PHP Application Makers

Columns & Labels

Even Column , label and format handler by builder configuration , you can still replace / overwrite them with your own code . here are available method/function for column and label
  • Rename column label
  • Remove columns
  • Example usage in real application

Rename columns

change label/title column

Method

label()

Params & Arguments

This method required array as params and accepted more arguments in one parameter
['field'=>'Label']
// Multiple label
['field'=>'Label' , 'field2'=>'Label2']

Example Usage

$CrudEngine->table($this->config['table])->builder($this->config)
           ->label(['officeCode'=>'Office'])
           ->render();

Remove columns

to remove spesific columns , its can be done by add additional remove() line code as bellow
 $CrudEngine->table($this->config['table])->builder($this->config)
   ->remove('officeCode,photos')
   ->render();

Example filtering/hiding column for spesific users groups

Root & Admin get all columns
$table =  $CrudEngine->table($this->config['table])->builder($this->config)
          ->render();
Hidding for other groups
$table =  $CrudEngine->table($this->config['table])->builder($this->config);

if(session('gid') !='1'):
    $table = $table->remove('col1,col2');
endif;    
    
$table = $table->render();

Please Register Purchased Code for full access Docs


Last Update : 2017-10-14 06:46:45