Apply and delete filters
Apply or remove filters using postMessage API—supporting local, global, timeline, and resolution filters.
Last updated
Was this helpful?
Was this helpful?
telliusFrame.postMessage ({
actionType: "vizpadFilter",
filters: [{
value: "Same",
column: "Ship_Mode",
operator: "Does not contain"
}],
allTabs: false
}, "*");telliusFrame.postMessage({
actionType: "vizFilter",
filters: [{
vizId: "ID_of_Viz",
value: "New",
column: "store_state",
operator: "like",
conditionName: "starts with"
}]
}, "*");telliusFrame.postMessage({
actionType: "vizFilter",
filters: [{
vizId: "ID_of_Viz",
value: "900",
column: "Shipping_Cost",
operator: ">=",
}, {
vizId: "ID_of_Viz",
value: "1200",
column: "Shipping_Cost",
operator: "<="
}]
}, "*");telliusFrame.postMessage ({
actionType: "vizFilter",
filters: [{
value: {
start: "2014-02-18T00:00:00Z",
end: "2018-02-18T00:00:00Z"
},
column: "Ship_Date",
filterKind: "vizTimelineFilter",
vizId: "ID_of_Viz",
}]
}, "*");telliusFrame.postMessage({
actionType: "resolution",
timeColumn: {
resolution: "quarterly",
}
}, "*");telliusFrame.postMessage({
actionType: "removeAllVizFilter"
}, "*");telliusFrame.postMessage({
actionType: "removeVizpadFilter",
id: "advancedFilter_idD_5j7kiov0e",
}, "*");telliusFrame.postMessage({
actionType: "removeVizFilter",
vizId: "f086db5c-e824-4bce-a1ec-07d005d8196f",
id: "advancedFilter_idD_maqkb30lh",
}, "*");