Data Binding

The datamap for the iCheck List for WireBootstrap component is listed below. The component expects these field names in its data configuration.

Properties

Name

Description

value

The field in the data to be used as the unique value for list item in the filter

label

The field in the data to be used as the display label for each list item in the filter

selected

Optional. The field in the data to determine which item should be selected

const users = [
    { value: "bsimmons", label: "Ben Simmons", selected: false },
    { value: "jembiid", label: "Joel Embiid", selected: true}
]

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

Last updated