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
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ Global optional parameters:
38
38
### Menu
39
39
Menu optional parameters:
40
40
*`is-open` boolean - Set initial open menu state.
41
-
*`action` string - The name of your upstream controller action to handle an icon click. Returned with 1 parameter `isOpen`, which is a boolean type indicating if the current state is open or closed.
41
+
*`onclick` closure action - The name of your consuming application's component/controller/route action to handle the transformicon click. Returned with 1 parameter `isOpen`, which is a boolean type indicating if the current state is open or closed.
42
42
43
43
**animation**
44
44
```handlebars
@@ -63,7 +63,7 @@ Menu optional parameters:
63
63
### Grid
64
64
Grid optional parameters:
65
65
*`is-open` boolean - Set initial open grid state.
66
-
*`action` string - The name of your upstream controller action to handle an icon click. Returned with 1 parameter `isOpen`, which is a boolean type indicating if the current state is open or closed.
66
+
*`onclick` closure action - The name of your consuming application's component/controller/route action to handle the transformicon click. Returned with 1 parameter `isOpen`, which is a boolean type indicating if the current state is open or closed.
67
67
68
68
**animation**
69
69
```handlebars
@@ -84,7 +84,7 @@ Grid optional parameters:
84
84
### Add
85
85
Add optional parameters:
86
86
*`is-added` boolean - Set initial open add state.
87
-
*`action` string - The name of your upstream controller action to handle an icon click. Returned with 1 parameter `isAdded`, which is a boolean type indicating if the current state is pending add.
87
+
*`onclick` closure action - The name of your consuming application's component/controller/route action to handle the transformicon click. Returned with 1 parameter `isAdded`, which is a boolean type indicating if the current state is pending add.
88
88
89
89
**animation**
90
90
```handlebars
@@ -105,7 +105,7 @@ Add optional parameters:
105
105
### Remove
106
106
Remove optional parameters:
107
107
*`is-removed` boolean - Set initial open removed state.
108
-
*`action` string - The name of your upstream controller action to handle an icon click. Returned with 1 parameter `isRemoved`, which is a boolean type indicating if the current state is pending remove.
108
+
*`onclick` closure action - The name of your consuming application's component/controller/route action to handle the transformicon click. Returned with 1 parameter `isRemoved`, which is a boolean type indicating if the current state is pending remove.
109
109
110
110
**animation**
111
111
```handlebars
@@ -134,7 +134,7 @@ Remove optional parameters:
134
134
### Mail
135
135
Mail optional parameters:
136
136
*`is-open` boolean - Set initial open mail state.
137
-
*`action` string - The name of your upstream controller action to handle an icon click. Returned with 1 parameter `isOpen`, which is a boolean type indicating if the current state is open or closed.
137
+
*`onclick` closure action - The name of your consuming application's component/controller/route action to handle the transformicon click. Returned with 1 parameter `isOpen`, which is a boolean type indicating if the current state is open or closed.
138
138
139
139
```handlebars
140
140
{{t-mail}}
@@ -152,7 +152,7 @@ Mail optional parameters:
152
152
### Form
153
153
Form optional parameters:
154
154
*`is-searching` boolean - Set initial searching state.
155
-
*`action` string - The name of your upstream controller action to handle an icon click. Returned with 1 parameter `isSearching`, which is a boolean type indicating if the current state is searching or not searching.
155
+
*`onclick` closure action - The name of your consuming application's component/controller/route action to handle the transformicon click. Returned with 1 parameter `isSearching`, which is a boolean type indicating if the current state is searching or not searching.
156
156
157
157
```handlebars
158
158
{{t-form}}
@@ -170,7 +170,7 @@ Form optional parameters:
170
170
### Video
171
171
Video optional parameters:
172
172
*`is-playing` boolean - Set initial playing state.
173
-
*`action` string - The name of your upstream controller action to handle an icon click. Returned with 1 parameter `isPlaying`, which is a boolean type indicating if the current state is playing or stopped.
173
+
*`onclick` closure action - The name of your consuming application's component/controller/route action to handle the transformicon click. Returned with 1 parameter `isPlaying`, which is a boolean type indicating if the current state is playing or stopped.
This click handler does two things after retrieving the transformicons initital state property name.
53
54
54
-
- It will toggle the state of the transformicon.
55
-
- It will also send a boolean action up to the consuming applicationwhen the transformicon is clicked. This action is returned with 1 parameter indicating if the current icon state is open/closed | added/removed | playing/stopped.
55
+
- It will toggle the state of the transformicon by toggling the `initialState` property name.
56
+
- It will also, if necessary, call an `onclick` closure action from to the consuming application's parent controller or component when the transformicon is clicked. This action is returned with 1 parameter indicating if the current icon state is open | added | searching | removed | playing.
* `animation` string - Set the add animation type.
22
22
* `a` string - Shorthand alias for `animation`.
23
23
* `is-added` boolean - Set initial open added state.
24
-
* `action` string - The name of your controller/route action to handle an icon click. Returned with 1 parameter `isAdded`, which is a boolean type indicating if the current state is pending add.
24
+
* `onclick` closure action - The name of your consuming application's component/controller/route action to handle the transformicon click. Returned with 1 parameter `isAdded`, which is a boolean type indicating if the current state is pending add.
Copy file name to clipboardExpand all lines: addon/components/t-form.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ const {
12
12
13
13
PUBLIC - Optional parameters:
14
14
* `is-searching` boolean - Set initial searching state.
15
-
* `action` string - The name of your controller/route action to handle an icon click. Returned with 1 parameter `isSearching`, which is a boolean type indicating if the current state is searching or not searching.
15
+
* `onclick` closure action - The name of your consuming application's component/controller/route action to handle the transformicon click. Returned with 1 parameter `isSearching`, which is a boolean type indicating if the current state is searching or not searching.
* `animation` string - Set the grid animation type.
22
22
* `a` string - Shorthand alias for `animation`.
23
23
* `is-open` boolean - Set initial open grid state.
24
-
* `action` string - The name of your controller/route action to handle an icon click. Returned with 1 parameter `isOpen`, which is a boolean type indicating if the current state is open or closed.
24
+
* `onclick` closure action - The name of your consuming application's component/controller/route action to handle the transformicon click. Returned with 1 parameter `isOpen`, which is a boolean type indicating if the current state is open or closed.
Copy file name to clipboardExpand all lines: addon/components/t-mail.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,15 @@ import BaseTransformicon from './base-transformicon';
5
5
const{
6
6
get,
7
7
computed,
8
-
computed: {alias}
8
+
computed: {reads}
9
9
}=Ember;
10
10
11
11
/**
12
12
Transformicon Mail component.
13
13
14
14
PUBLIC - Optional parameters:
15
15
* `is-open` boolean - Set initial open mail state.
16
-
* `action` string - The name of your controller/route action to handle an icon click. Returned with 1 parameter `isOpen`, which is a boolean type indicating if the current state is open or closed.
16
+
* `onclick` closure action - The name of your consuming application's component/controller/route action to handle the transformicon click. Returned with 1 parameter `isOpen`, which is a boolean type indicating if the current state is open or closed.
* `animation` string - Set the menu animation type.
26
26
* `a` string - Shorthand alias for `animation`.
27
27
* `is-open` boolean - Set initial open menu state.
28
-
* `action` string - The name of your controller/route action to handle an icon click. Returned with 1 parameter `isOpen`, which is a boolean type indicating if the current state is open or closed.
28
+
* `onclick` closure action - The name of your consuming application's component/controller/route action to handle the transformicon click. Returned with 1 parameter `isOpen`, which is a boolean type indicating if the current state is open or closed.
* `animation` string - Set the menu animation type.
25
25
* `a` string - Shorthand alias for `animation`.
26
26
* `is-removed` boolean - Set initial open removed state.
27
-
* `action` string - The name of your controller/route action to handle an icon click. Returned with 1 parameter `isRemoved`, which is a boolean type indicating if the current state is pending remove.
27
+
* `onclick` closure action - The name of your consuming application's component/controller/route action to handle the transformicon click. Returned with 1 parameter `isRemoved`, which is a boolean type indicating if the current state is pending remove.
0 commit comments