Data Binding

There is no data map for the Bootstrap table component. By default, all columns in a data table will be displayed in the table.

const people = [    
    { name: "John Ross", address: "124 some address" },
    { name: "Ted Gannon", address: "456 some other address" }
]

const table = new wire.bsTable().render("#table", {
    data: users
});

Control column display using the base WireBootstrap component's hide or show attributes.

...

const table = new wire.bsTable().render("#table", {
    data: users,
    hide: ["address"] 
});

Last updated