--- currentMenu: input-helpers --- # Helpers - [Import values for ``](#import-values-for-input) - [Export values from ``](#export-values-from-input) ## Import values for `` To fill input commands with values from a map: ``` {events: { hide: function(opt){ $.contextMenu.getInputValues(opt, {command1: "foo", command2: "bar"}); } } } ``` To fill input commands with values from data-attributes: ``` {events: { hide: function(opt){ $.contextMenu.getInputValues(opt, this.data()); } } } ``` ## Export values from `` To fetch values from input commands: ``` {events: { hide: function(opt){ var values = $.contextMenu.setInputValues(opt} } } ``` To save values from input commands to data-attributes: ``` {events: { hide: function(opt){ $.contextMenu.setInputValues(opt, this.data()); } } } ```