orderable - paulmaclean/datatables.webcomponent GitHub Wiki

orderable

Type: OrderableOpts

Default:

{ 
    enabled: true,
    column: 0,
    order: 'asc'
}

The orderable property sets the default ordering on a given column when the table loads.

example

render() {
    return html`
        <example-data-table .orderable="${ {column: 2, order: 'desc'} }"></example-data-table>
    `
}