@@ -12,10 +12,6 @@ Widget source file is [lib/web/mage/dropdowns.js].
12
12
The dropdown widget allows to show show on storefront a select box with custom
13
13
content for each of available options.
14
14
15
- {:.bs-callout .bs-callout-info} Dropdown widget is not meant to replace default
16
- HTML select element. By replacing default select in store forms don't expect
17
- the store to work 100% the same as before changes.
18
-
19
15
20
16
** Usages:**
21
17
- [ Shipping policy]
@@ -50,8 +46,8 @@ the store to work 100% the same as before changes.
50
46
51
47
### Styles
52
48
53
- By default the dropdown is not styled. But, there is a handy
54
- [ LESS mixin ` .lib-dropdown() ` ] that comes to the rescue:
49
+ The dropdown widget is not styled out of the box.
50
+ Use [ LESS mixin ` .lib-dropdown() ` ] to customize it.
55
51
56
52
``` less
57
53
//
@@ -186,9 +182,7 @@ Looking at the HTML markup, given element has to be inside the `parent` option.
186
182
187
183
### ` activeClass ` {#d_activeClass}
188
184
189
- The CSS class that reflects the current state of the dropdown widget.
190
- Given class is added to the element widget was initialized when the dropdown
191
- menu should be visible.
185
+ Given class is added to the widget element when the menu is visible.
192
186
193
187
** Type** : String
194
188
@@ -199,4 +193,4 @@ menu should be visible.
199
193
200
194
The result is a custom select dropdown with custom content as options.
201
195
202
- ![ Dropdown Widget] ({{ page .baseurl }}/javascript-dev-guide/widgets/ images/dropdown-widget-result.png )
196
+ ![ Dropdown Widget] ({{ site .baseurl }}/common/ images/widget/ dropdown-widget-result.jpg )
0 commit comments