forked from yui/yui3-gallery
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
70 lines (53 loc) · 2.87 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Undo Framework for YUI3
I. Changelog
ver. 1.01
- Undo/Redo migrated to YUI 3.1.1. No code changes.
ver. 1.0
Initial load
-------------------------------------------------------------------------------------------
Accordion widget for YUI 3
I. Changelog
ver. 1.14
- The developer may prevent the action which follows 'itemChosen' event (expanding, collapsing, closing, etc.) by preventing the default function, bound to this event.
ver. 1.12
- Closing an item can be prevented.
- 'itemChosen' property supports multiple events - for example ['mouseenter', 'click']
ver. 1.11
- Replace deprecated/removed API functions with their alternatives
ver. 1.10
- Fixed bug which caused firing itemExpanded event twice.
- Events will be not published in Accordion explicitly, but they will be created only if needed.
ver. 1.091
- Accordion migrated to YUI 3.1.1. No code changes.
ver. 1.09
- Accordion migrated to YUI 3.1. A lot of internal changes and improvements, but should work with the existing configurations. The main difference is when instantiating - there is no need to pass contentBox/boundingBox as configuration parameters. Instead, you should set "srcNode" only.
All Accordion classes has been renamed to start with yui3.
Accordion is has been created by using Base.create instead Y.extend and Base.build
The method _getConfigDOMAttribute has been removed and Widget's _applyParser has been overwritten in order to parse and prepare yuiConfig attribiute for HTML_PARSER.
ver 1.08
- AccordionItem has a new function - resize(). It should be invoked if the content has been updated directly (by using innerHTML).
This is neeed only if "contentHeight" property has been set to "auto". The function also causes resizing of all other expanded and stretched items.
ver. 1.07
- Parsing data from markup improved for icon, nodeLabel, iconsContainer, iconAlwaysVisible, iconExpanded and iconClose configuration properties.
Valid input is not only Node, but raw HTMLElement and a selector string also.
- Item reordering is false by default, instead true. As result, drag modules are now optional, not required.
ver. 1.06
- Accordion supports setting config attributes via HTML5 "data-". These are:
+ data-label - string
+ data-expanded - "true", "yes" or "1"
+ data-alwaysvisible - "true", "yes" or "1"
+ data-closable - "true", "yes" or "1"
+ data-contentheight - "auto", "stretch" or "fixed-X", where X is a number
Examples:
data-label="Label1"
data-expanded="true"
data-contentheight="fixed-150" - content height will be 150 px
ver. 1.05
- Setting item label bugfix
ver. 1.04
- progressive enhancement improvements in AccordionItem
- header HTML structure changed - table no more used, links will be used instead
ver. 1.03
- string literals turned into local constants
- EVENT_TYPES variable removed
- event listeners unbundled