how to set nav item active on click #7686
tangenttechno
started this conversation in
General
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@2betop @nwind I am trying to set the nav item active on click, tried
context.navRef.setState({"active" : true}),event.setData({ "item": {"active": true}}). but doesn't work. Please help.{ "type": "nav", "stacked": true, "links": [ { "label": "Page 1", "to": "?id=1", "id": "0" }, { "label": "Page 2", "to": "?id=2", "id": "1" } ], "id": "u:8a3bfa41be61", "onEvent": { "click": { "weight": 0, "actions": [ { "script": "context.navRef.setState({\"active\" : true})", "actionType": "custom" } ] } } }Beta Was this translation helpful? Give feedback.
All reactions