Skip to content
This repository has been archived by the owner on Jun 24, 2019. It is now read-only.

Latest commit

 

History

History
44 lines (42 loc) · 813 Bytes

File metadata and controls

44 lines (42 loc) · 813 Bytes
title weight
escape
20
<div id="table">
    <bootstrap-table :columns="columns" :data="data" :options="options"></bootstrap-table>
</div>
new Vue({
    el: '#table',
    components: {
        'bootstrap-table': BootstrapTable
    },
    data: {
        columns: [
            {
                title: 'Item ID',
                field: 'id'
            },
            {
                field: 'name',
                title: 'Item Name'
            }, {
                field: 'price',
                title: 'Item Price'
            }
        ],
        data: [
            {
                "id": 0,
                "name": "Item 0",
                "price": "<a href=\"#\">$0</a>"
            }
        ],
        options: {
            escape: true
        }
    }
});