Grid tricks Bootstrap 4.5 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 | Muscle Machine Inc | NYC | Remove |
2 | Diecast Classics Inc. | Allentown | Remove |
3 | Technics Stores Inc. | Burlingame | Remove |
4 | Gift Depot Inc. | Bridgewater | Remove |
5 | Osaka Souveniers Co. | Kita-ku | Remove |
6 | Vitachrome Inc. | NYC | Remove |
7 | Toys of Finland, Co. | Helsinki | Remove |
8 | AV Stores, Co. | Manchester | Remove |
9 | Clover Collections, Co. | Dublin | Remove |
10 | Auto-Moto Classics Inc. | Brickhaven | Remove |