In the documentation for skuid.events (https://docs.skuid.com/latest/en/skuid/api/skuid_events.html#examples), the publish example has the following syntax:
In working out a solution, the second input didn't come through. I was able to get it to work with slightly different syntax, however:
var config = { doSomething: true, direction: 'vertical'
}; skuid.events.publish('acme.page.resize',[config]);
Is there anything else to be aware of in the payload array parameter?
Here's the final working solution:
var filter = {
filterName:'Name1',
filterValue:'Value1'
};
skuid.events.publish("RemoveFilter", [filter], { scope: skuid.constants.EVENT_SCOPES.GLOBAL });
var config = { doSomething: true }; var eventDetails = { direction: 'vertical' };skuid.events.publish('acme.page.resize',[config,eventDetails]);
In working out a solution, the second input didn't come through. I was able to get it to work with slightly different syntax, however:
var config = { doSomething: true, direction: 'vertical'
}; skuid.events.publish('acme.page.resize',[config]);
Is there anything else to be aware of in the payload array parameter?
Here's the final working solution:
var filter = {
filterName:'Name1',
filterValue:'Value1'
};
skuid.events.publish("RemoveFilter", [filter], { scope: skuid.constants.EVENT_SCOPES.GLOBAL });