easy 19.0.4 → 19.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -20
- package/example.js +153 -281
- package/lib/bounds.js +1 -1
- package/lib/document.js +1 -1
- package/lib/element/body.js +13 -24
- package/lib/element/button.js +11 -24
- package/lib/element/checkbox.js +11 -24
- package/lib/element/link.js +11 -24
- package/lib/element/select.js +11 -24
- package/lib/element.js +1 -1
- package/lib/example/view/checkbox.js +11 -24
- package/lib/example/view.js +13 -29
- package/lib/inputElement/input.js +11 -24
- package/lib/inputElement/textarea.js +11 -24
- package/lib/inputElement.js +13 -37
- package/lib/mixins/customEvent.js +1 -1
- package/lib/mixins/input.js +32 -0
- package/lib/offset.js +1 -1
- package/lib/textElement.js +1 -1
- package/lib/window.js +1 -1
- package/package.json +1 -1
- package/src/inputElement.js +2 -6
- package/src/mixins/input.js +20 -0
package/README.md
CHANGED
|
@@ -164,24 +164,26 @@ Each class bar the `Window`, `Document` and `TextElement` classes has the follow
|
|
|
164
164
|
- `getScrollLeft()`
|
|
165
165
|
- `setScrollTop(scrollTop)`
|
|
166
166
|
- `setScrollLeft(scrollLeft)`
|
|
167
|
-
- `onClick(
|
|
168
|
-
- `offClick(
|
|
169
|
-
- `onKeyUp(
|
|
170
|
-
- `
|
|
171
|
-
- `
|
|
172
|
-
- `
|
|
173
|
-
- `
|
|
174
|
-
- `
|
|
175
|
-
- `
|
|
176
|
-
- `
|
|
177
|
-
- `
|
|
178
|
-
- `
|
|
179
|
-
- `
|
|
180
|
-
- `
|
|
181
|
-
- `
|
|
182
|
-
- `
|
|
183
|
-
- `
|
|
184
|
-
- `
|
|
167
|
+
- `onClick(clickHandler)`
|
|
168
|
+
- `offClick(clickHandler)`
|
|
169
|
+
- `onKeyUp(keyUpHandler)`
|
|
170
|
+
- `offKeyUp(keyUpHandler)`
|
|
171
|
+
- `onKeyDown(keyDownHandler)`
|
|
172
|
+
- `offKeyDown(keyDownHandler)`
|
|
173
|
+
- `onMouseUp(mouseUpHandler)`
|
|
174
|
+
- `onMouseDown(mouseDownHandler)`
|
|
175
|
+
- `onMouseOver(mouseOverHandler)`
|
|
176
|
+
- `onMouseOut(mouseOutHandler)`
|
|
177
|
+
- `onMouseMove(mouseMoveHandler)`
|
|
178
|
+
- `offMouseUp(mouseUpHandler)`
|
|
179
|
+
- `offMouseDown(mouseDownHandler)`
|
|
180
|
+
- `offMouseOver(mouseOverHandler)`
|
|
181
|
+
- `offMouseOut(mouseOutHandler)`
|
|
182
|
+
- `offMouseMove(mouseOverHandler)`
|
|
183
|
+
- `onScroll(scrollHandler)`
|
|
184
|
+
- `offScroll(scrollHandler)`
|
|
185
|
+
- `onResize(resizeHandler)`
|
|
186
|
+
- `offResize(resizeHandler)`
|
|
185
187
|
- `onEvent(eventTypes, handler)`
|
|
186
188
|
- `offEvent(eventTypes, handler)`
|
|
187
189
|
- `onCustomEvent(customEventTypes, handler)`
|
|
@@ -199,8 +201,12 @@ Please note the following:
|
|
|
199
201
|
|
|
200
202
|
The `Input` and `Textarea` classes also have the following methods, taken from the `InputElement` class:
|
|
201
203
|
|
|
202
|
-
- `
|
|
203
|
-
- `
|
|
204
|
+
- `onBlur(blurHandler)`
|
|
205
|
+
- `offBlur(blurHandler)`
|
|
206
|
+
- `onFocus(focusHandler)`
|
|
207
|
+
- `offFocus(focusHandler)`
|
|
208
|
+
- `onChange(changeHandler)`
|
|
209
|
+
- `offChange(changeHandler)`
|
|
204
210
|
- `getValue()`
|
|
205
211
|
- `getSelectionStart()`
|
|
206
212
|
- `getSelectionEnd()`
|