Pages
Last updated
Was this helpful?
Was this helpful?
public dsProducts = new wire.data.DataSet({
// use the sample data source
Source: sampleDataSource,
// select top 10 distinct products
Query: wire.data.select("Product").distinct().top(10),
// turn off event listening for filters
Events: false
});const select = new wire.bs.select().render("#select", {
data: this.data.dsProducts,
datamap: { id: "Product", label: "Product"},
});sayHello() {
wire.ui.MessageDialog("Hello");
}<button ... onclick="page.sayHello()">Say Hello</button>