Lines Matching refs:menu

59     "menu": [ {
61 "menu": [ {
63 "menu": [ "PNG", "JPG", "CSV" ]
67 "menu": [ {
69 "menu": [ "PNG", "JPG" ]
127 divId | | ID or a reference to div object in case you want the menu in a separate container.
133 menu | [] | A list of menu or submenu items (see the next chapter for details)
147 …e the css attribute 'overflow' of the chart container to avoid cropping the menu on small container
150 ## Configuring export menu
152 Plugin includes a way to completely control what is displayed on export menu.
157 The top-level menu is configured via `menu` property under `export`. It should
166 ### Simple menu setup argument
168 Here's a sample of the simple menu setup that allows export to PNG, JPG and CSV:
173 "menu": [ {
175 "menu": [ "PNG", "JPG", "CSV" ]
180 The above will display a menu out of three options when you hover on export
191 Please note that we have wrapped out menu into another menu item, so that only
193 we have a two-level hierarchical menu.
198 ### Advanced menu setup argument
200 However, you can do so much more with the menu.
205 To add a submenu to a menu item, simply add a `menu` array as its own property:
210 "menu": [ {
212 "menu": [ {
214 "menu": [ "PNG", "JPG", "SVG" ]
217 "menu": [ "CSV", "XLSX" ]
223 Now we have a hierarchical menu with the following topology:
237 "menu": [
248 ### Adding custom click events to menu items argument
250 Just like we set `label` and `format` properties for menu item, we can set
257 "menu": [
285 By passing the `menuReviver` callback function you can modify the resulting menu
364 function to create the menu by the given list configured through `menu`.
376 Adding menu item to print the chart or map is as easy as adding export ones. You
381 "menu": [
393 "menu": [
408 By default each menu item triggers some kind of export. You can trigger an
413 "menu": [ {
415 "menu": [ {
417 "menu": [ "PNG", "JPG", "CSV", "XLSX" ]
426 Now, when you click on the "Annotate" item in the menu, the chart will turn into
427 an image editor which you can actual draw on and the menu gets replaced by the
428 default annotation menu.
430 If you don't like the detault annotation menu, you can define your own:
434 "menu": [ {
436 "menu": [ {
438 "menu": [ "PNG", "JPG", "CSV", "XLSX" ]
442 "menu": [ {
444 "menu": [ "JPG", "PNG", "SVG", "PDF" ]
454 And that's not even the end of it. You can add menu items to cancel, undo, redo
460 "menu": [ {
462 "menu": [ {
464 "menu": [ "PNG", "JPG", "CSV", "XLSX" ]
468 "menu": [ {
470 "menu": [ {
476 "menu": [ "UNDO", "REDO", "CANCEL" ]
490 need to re-define the whole menu structure. You can easily adjust the choice of
500 "enabled": true, // Flag for `action: "draw"` menu items to toggle it's visibility
501 …"shapes": [ "test.svg" ], // Choice of shapes offered in the menu (shapes are being loaded from th…
504 "widths": [ 2, 10, 20 ], // Choice of widths offered in the menu
507 "colors": [ "#000000", "#FF0000" ] // Choice of colors offered in the menu
510 "opacities": [ 1, 0.8, 0.6, 0.4, 0.2 ] // Choice of opacity offered in the menu
512 "menu": [ ... ], // Shown menu when entering the annotation mode
515 "modes": [ "pencil" , "line", "arrow" ], // Choice of modes offered in the menu
530 "menu": ["PNG"],
543 property in your menu item:
549 // or specifically on individual menu items
551 "menu": [{
578 // or specifically on individual menu items
580 "menu": [{
600 beforeCapture | [menu item setup](#a-list-of-menu-item-properties) | Called before the SVG element …
601 afterCapture | [menu item setup](#a-list-of-menu-item-properties) | Called right before the passed …
604 ### A list of menu item properties argument
610 click | Function handler invoked upon click on menu item
614 menu | An array of submenu items
650 To do that, you can use menu item's `content` property.
663 Here's an example of such export menu item:
735 ## Styling the export menu
750 export menu items.
759 menu: [ {
965 * Fixed: Issue with empty menu items; adds list only with childNodes > 1
1002 * Added: Possibility to define dedicated drawing menu `drawing.menu` individual menu items get prio…
1078 * Added: divId to be able to place the menu within an external container
1079 * Added: menuWalker to replace the whole menu generation
1080 * Added: menuReviver to adapt menu items before being appended to the list
1096 * Fix: migration bug, replaces menu instead of appending