Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit dd34df8

Browse files
author
Burlacu Vasilii
authored
Editorial changes
1 parent 9542f7f commit dd34df8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

guides/v2.2/javascript-dev-guide/widgets/widget_dropdown.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ Widget source file is [lib/web/mage/dropdowns.js].
4848
### Styles
4949

5050
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.
5251

5352
```less
5453
//
@@ -104,7 +103,7 @@ Use [LESS mixin `.lib-dropdown()`] to customize it.
104103

105104
## Initialize the dropdown widget {#dropdown_init}
106105

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).
108107

109108
### Initialize with `data-mage-init` attribute
110109

@@ -138,7 +137,6 @@ $('.magento__dropdown-widget').dropdown();
138137
### `parent` {#d_parent}
139138

140139
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()`.
142140

143141
**Type**:
144142

@@ -161,9 +159,6 @@ Determines whether to close the dropdown menu when the user clicks outside of th
161159
### `btnArrow` {#d_btnArrow}
162160

163161
(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.
167162

168163
**Type**: String
169164

@@ -173,7 +168,6 @@ just fine without it as well.
173168
### `menu` {#d_menu}
174169

175170
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.
177171

178172
**Type**: String
179173

0 commit comments

Comments
 (0)