Labels and classes Bootstrap 4.5 theme
Label() method will change all field names in all screens, column_name() - only grid headers.
HIDE CODE
<?php $xcrud = Xcrud::get_instance(); $xcrud->table('employees'); $xcrud->label('lastName','Surname'); $xcrud->label('firstName','Name'); $xcrud->label('officeCode','Office code')->label('reportsTo','Reports to')->label('jobTitle','Job title'); $xcrud->column_name('firstName', 'NaMe!'); // only column renaming $xcrud->column_class('extension','align-center font-bold'); // any classname // predefined classnames: align-left, align-right, align-center, font-bold, font-italic, text-underline echo $xcrud->render(); ?>
Employees
# | Surname | NaMe! | Extension | Office code | Reports to | Job title | ||
---|---|---|---|---|---|---|---|---|
1 | Ja | Barry | x102 | bjones@dfsdf.it | 1102 | Sales Rep | View Edit Remove | |
2 | Fixter | Andy | x101 | afixter@classicmodelcars.com | 900 | 1088 | Sales Rep | View Edit Remove |
3 | Marsh | Peter | x102 | pmarsh@classicmodelcars.com | 6 | 1088 | Sales Rep | View Edit Remove |
4 | King | Tom | x103 | tking@classicmodelcars.com | 5 | 1088 | Sales Rep | View Edit Remove |
5 | Nishi | Mami | x101 | mnishi@classicmodelcars.com | 5 | 1056 | Sales Rep | View Edit Remove |
6 | Kato | Yoshimi | x102 | ykato@classicmodelcars.com | 5 | 1621 | Sales Rep | View Edit Remove |
7 | Gerard | Martin | x2312 | mgerard@classicmodelcars.com | 4 | 1102 | Sales Rep | View Edit Remove |
8 | Chieni | Patrick | pchieni@gmail.com | VP Marketing | View Edit Remove | |||
9 | javier | juan | 150 | elmio@gmol.com | persona | View Edit Remove | ||
10 | 1231231 | 4331123 | test | View Edit Remove |