Tuesday, November 10, 2015

Snippet - My Bahasa Malaysia Bootstrap data table

Peace be upon you,

Bootstrap table with Data Tables

I am fan of bootstrap design for my website design. But I still need another scripting for my table component which is about filter, sort and navigation. DataTable are my favorites script. It keep my HTML table so clean and breeze. Here, I share with you, my personal language configuration in Malay:

<script type="text/javascript">
        $('#bootstrap-table').dataTable( {
            "ordering": false,
            "language": {
                "search": "Carian:",
                paginate: {first:    '<<',previous: '<<',next:     '>>',last:     '>>'},
                "info": "Paparan halaman _PAGE_ daripada _PAGES_ halaman",
                "lengthMenu": "Lihat _MENU_ rekod per halaman",
                "infoEmpty":      "",
                "infoFiltered":   "(Tapisan carian daripada _MAX_ rekod maklumat)",
                "zeroRecords":    "Tiada padanan carian di temui"
        } );

Kudos for Datatables for this excellent and wonderful add-on to my bootstrap design :)

No comments:

Post a Comment