Skip to content

Commit 2adefaa

Browse files
3.1.0 (#3)
* upd .gitignore file * upd dependencies * implement interface * jsdoc - TippySettings * 3.1.0
1 parent 6deeb33 commit 2adefaa

File tree

4 files changed

+1665
-4
lines changed

4 files changed

+1665
-4
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ build/Release
3838
# Dependency directories
3939
node_modules/
4040
jspm_packages/
41-
package-lock.json
4241

4342
# TypeScript v1 declaration files
4443
typings/

index.js

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ export class AbstractTippy extends WebPluginInterface {
8080
super._beforeInitialize();
8181
}
8282

83+
/** @protected */
84+
_initialize () {
85+
this.tooltip = tippy(this.element, this.settings);
86+
}
87+
8388
/** @protected */
8489
_afterInitialize () {
8590
super._afterInitialize();
@@ -89,13 +94,61 @@ export class AbstractTippy extends WebPluginInterface {
8994
initialize () {
9095
this._setup();
9196
this._beforeInitialize();
92-
this.tooltip = tippy(this.element, this.settings);
97+
this._initialize();
9398
this._afterInitialize();
9499
}
95100
}
96101

97102
/**
98103
* @typedef {Options} TippySettings
104+
* @property {boolean} [a11y] true
105+
* @property {boolean} [allowHTML] true
106+
* @property {boolean} [animateFill] true
107+
* @property {string} [animation] shift-away
108+
* @property {string} [appendTo] function appendTo() {return document.body}
109+
* @property {string} [aria] describedby
110+
* @property {boolean} [arrow] false
111+
* @property {string} [arrowType] sharp
112+
* @property {string} [boundary] scrollParent
113+
* @property {string} [content]
114+
* @property {number} [delay] 0
115+
* @property {number} [distance] 10
116+
* @property {number[]} [duration] [325, 275]
117+
* @property {boolean} [flip] true
118+
* @property {string} [flipBehavior] flip
119+
* @property {boolean} [flipOnUpdate] false
120+
* @property {boolean} [followCursor] false
121+
* @property {boolean} [hideOnClick] true
122+
* @property {boolean} [ignoreAttributes] false
123+
* @property {boolean} [inertia] false
124+
* @property {boolean} [interactive] false
125+
* @property {number} [interactiveBorder] 2
126+
* @property {number} [interactiveDebounce] 0
127+
* @property {boolean} [lazy] true
128+
* @property {number} [maxWidth] 350
129+
* @property {boolean} [multiple] false
130+
* @property {number} [offset] 0
131+
* @property {function} [onHidden]
132+
* @property {function} [onHide]
133+
* @property {function} [onMount]
134+
* @property {function} [onShow]
135+
* @property {function} [onShown]
136+
* @property {function} [onTrigger]
137+
* @property {string} [placement] top
138+
* @property {object} [popperOptions] {}
139+
* @property {string} [role] tooltip
140+
* @property {boolean} [showOnInit] false
141+
* @property {string} [size] regular
142+
* @property {boolean} [sticky] false
143+
* @property {string} [target]
144+
* @property {string} [theme] dark
145+
* @property {boolean} [touch] true
146+
* @property {boolean} [touchHold] false
147+
* @property {string} [trigger] mouseenter focus
148+
* @property {null} [triggerTarget] null
149+
* @property {number} [updateDuration] 0
150+
* @property {null} [wait] null
151+
* @property {number} [zIndex] 9999
99152
*/
100153

101154
/**

0 commit comments

Comments
 (0)