@@ -48,7 +48,6 @@ Widget source file is [lib/web/mage/dropdowns.js].
48
48
### Styles
49
49
50
50
Because the dropdown widget is not formatted by default, use [ LESS mixin ` .lib-dropdown() ` ] to customize it.
51
- Use [ LESS mixin ` .lib-dropdown() ` ] to customize it.
52
51
53
52
``` less
54
53
//
@@ -104,7 +103,7 @@ Use [LESS mixin `.lib-dropdown()`] to customize it.
104
103
105
104
## Initialize the dropdown widget {#dropdown_init}
106
105
107
- The loader widget is initialized as described in [ JavaScript initialization] ({{ page.baseurl }}/javascript-dev-guide/javascript/js_init.html).
106
+ The dropdown widget is initialized as described in [ JavaScript initialization] ({{ page.baseurl }}/javascript-dev-guide/javascript/js_init.html).
108
107
109
108
### Initialize with ` data-mage-init ` attribute
110
109
@@ -138,7 +137,6 @@ $('.magento__dropdown-widget').dropdown();
138
137
### ` parent ` {#d_parent}
139
138
140
139
The parent element that initialized the widget. If not specified, the widget locates the element using the ` .parent() ` jQuery method.
141
- the widget finds it himself with jQuery method ` .parent() ` .
142
140
143
141
** Type** :
144
142
@@ -161,9 +159,6 @@ Determines whether to close the dropdown menu when the user clicks outside of th
161
159
### ` btnArrow ` {#d_btnArrow}
162
160
163
161
(Optional) A jQuery selector that updates the arrow to ` + ` or ` - ` based on the state of the dropdown.
164
- The widget changes given element's text to '+' or '-", depending on the dropdown state.
165
- It's not required the element to be present in the dropdown HTML markup. It works
166
- just fine without it as well.
167
162
168
163
** Type** : String
169
164
@@ -173,7 +168,6 @@ just fine without it as well.
173
168
### ` menu ` {#d_menu}
174
169
175
170
A jQuery selector that represents the dropdown's menu element. ` menu ` must be inside the ` parent ` element.
176
- Looking at the HTML markup, given element has to be inside the ` parent ` option.
177
171
178
172
** Type** : String
179
173
0 commit comments