Grid tricks Default 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 | Remove | ||
2 | Danish Wholesale Imports | Kobenhavn | Remove |
3 | Saveley & Henriot, Co. | Lyon | Remove |
4 | Dragon Souveniers, Ltd. | Singapore | Remove |
5 | Muscle Machine Inc | NYC | Remove |
6 | Diecast Classics Inc. | Allentown | Remove |
7 | Technics Stores Inc. | Burlingame | Remove |
8 | Herkku Gifts | Bergen | Remove |
9 | Gift Depot Inc. | Bridgewater | Remove |
10 | Osaka Souveniers Co. | Kita-ku | Remove |