We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forum post
{ ref: "showBaselineMenu", type: "button", text: "Show baseline", menu: [ { id : 'baselineMenu1', type: 'check', text: "Baseline 1", statefulEvents : ['change', 'resize'], stateId, stateful: ["checked"], // this doesn't save the state of the menu item onToggle({ checked }) { } }, ] }
"Hi,
I could use some hints how to add state to this checkbox:
class GanttToolbar extends Toolbar { static get configurable() { return { items: [ { ref: "showBaselineMenu", type: "button", text: "Show baseline", menu: [ { checked: true, text: "Baseline 1", stateful: ["checked"], // this doesn't save the state of the menu item stateId: "showBaselineMenuBaseline1", onToggle({ checked }) { toggleBaselineVisible(1, checked); } }, // ... some more items ] }, ] }; } }
elsewhere in the gantt initialiser code:
StateProvider.setup("local");
The StateProvider works well for other stateful components (widths of columns are saved).
How to add menu item checkbox to the state? "
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Forum post
"Hi,
I could use some hints how to add state to this checkbox:
elsewhere in the gantt initialiser code:
The StateProvider works well for other stateful components (widths of columns are saved).
How to add menu item checkbox to the state?
"
The text was updated successfully, but these errors were encountered: