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 | Atelier graphique | Nantes | Remove |
2 | Signal Gift Stores | Las Vegas | Remove |
3 | Australian Collectors, Co. | Melbourne | Remove |
4 | La Rochelle Gifts | Nantes | Remove |
5 | Baane Mini Imports | Stavern | Remove |
6 | Mini Gifts Distributors Ltd. | San Rafael | Remove |
7 | Zbyszek Zbyszek Piestrzeniewicz | Warszawa | Remove |
8 | Blauer See Auto, Co. | Frankfurt | Remove |
9 | Mini Wheels Co. | San Francisco | Remove |
10 | Land of Toys Inc. | NYC | Remove |