Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Alternate state field as a dropdown
state: {
ref: "qHyperCubeDef.qStateName",
label: "State",
type: "string",
defaultValue: "$",
component: "dropdown",
options: function () {
return qlik.currApp(this).getAppLayout().then(function (a) {
return a.layout.qStateNames.concat('$').map(function (state) {
return {
value: state,
label: state
};
});
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment