Grid tricks Bootstrap theme
Clickable column - very simple
HIDE CODE
<?php $xcrud = Xcrud::get_instance(); $xcrud->table('customers'); $xcrud->columns('customerName,city'); $xcrud->hide_button('edit'); $xcrud->unset_view(); $xcrud->column_pattern('customerName', '<a href="#" class="xcrud-action" data-task="edit" data-primary="{customerNumber}">{value}</a>'); $xcrud->column_width('city','20%'); echo $xcrud->render(); ?>
Customers
# | Customername | City | |
---|---|---|---|
1 | Mini Gifts Distributors Ltd. | San Rafael | |
2 | Zbyszek Zbyszek Piestrzeniewicz | Warszawa | |
3 | Blauer See Auto, Co. | Frankfurt | |
4 | Mini Wheels Co. | San Francisco | |
5 | Land of Toys Inc. | NYC | |
6 | s | ||
7 | Volvo Model Replicas, Co | Luleå | |
8 | Danish Wholesale Imports | Kobenhavn | |
9 | Saveley & Henriot, Co. | Lyon | |
10 | Dragon Souveniers, Ltd. | Singapore |