You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defines annotation Z order placement relative to chart items. Chart items are drawn in layers on top of each other. We can draw annotations under the items or over them.
43
-
If you place annotations over items then you block mouse events of UI elements in them. Browsers don't support mouse events transparentcy consistently.
44
-
So in order to avoid mouse events blocking of UI elements in item templates you have to place annotation items under them.
45
-
Take into account that chart default buttons are drawn on top of everyhting, so they are never blocked by annotations drawn over items.
It is needed to distinguish click events from different butons.
17
-
*/
18
-
this.name=name;
17
+
/**
18
+
* Button name. It is needed for `onButtonClick` event handler.
19
+
*
20
+
* @type {string}
21
+
*/
22
+
this.name=name;
19
23
20
-
/*
21
-
Property: icon
22
-
Name of icon used in jQuery UI.
23
-
*/
24
-
this.icon=icon;
25
-
/*
26
-
Property: text
27
-
Whether to show any text -when set to false (display no text),
28
-
icon must be enabled, otherwise it'll be ignored.
29
-
*/
30
-
this.text=false;
31
-
/*
32
-
Property: label
33
-
Text to show on the button.
34
-
*/
35
-
this.label=null;
36
-
/*
37
-
Property: tooltip
38
-
Button tooltip content. Tooltip is based on jQuery UI tooltip widget, so it should be part of jQuery UI distribution in order to make this property work.
39
-
*/
40
-
this.tooltip=tooltip;
41
-
/*
42
-
Property: size
43
-
Size of the button of type <primitives.common.Size>.
44
-
*/
45
-
this.size=newprimitives.common.Size(16,16);
24
+
/**
25
+
* Name of icon used in jQuery UI.
26
+
*
27
+
* @type {string}
28
+
*/
29
+
this.icon=icon;
30
+
31
+
/**
32
+
* If true show button text
33
+
* @type {boolean}
34
+
*/
35
+
this.text=false;
36
+
37
+
/**
38
+
* Text to show on the button.
39
+
*
40
+
* @type {string}
41
+
*/
42
+
this.label=null;
43
+
44
+
/**
45
+
* Button tooltip content. Tooltip is rendered using jQuery UI tooltip widget, so it should be part of jQuery UI distribution
0 commit comments