-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Added the documentation for Sortable widget #5358
Added the documentation for Sortable widget #5358
Conversation
An admin must run tests on this PR before it can be merged. |
contributor_link: https://www.atwix.com/ | ||
--- | ||
|
||
The Sortable [widget](https://glossary.magento.com/widget/) is a customized jQuery [Sortable Widget] that allows sorting sortable items with *Up* and *Down* buttons. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Sortable [widget](https://glossary.magento.com/widget/) is a customized jQuery [Sortable Widget] that allows sorting sortable items with *Up* and *Down* buttons. | |
The Sortable [widget](https://glossary.magento.com/widget/) is a customized jQuery [Sortable Widget][] that allows you to reorder sortable items using *Up* and *Down* buttons. |
|
||
The Sortable [widget](https://glossary.magento.com/widget/) is a customized jQuery [Sortable Widget] that allows sorting sortable items with *Up* and *Down* buttons. | ||
|
||
The Sortable widget can be used only on the [adminhtml](https://glossary.magento.com/adminhtml) area. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Sortable widget can be used only on the [adminhtml](https://glossary.magento.com/adminhtml) area. | |
The Sortable widget is only available in the [adminhtml](https://glossary.magento.com/adminhtml) area. |
|
||
Where: | ||
|
||
- `#sortable` is the selector of the block element for which Sortable is initialized. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `#sortable` is the selector of the block element for which Sortable is initialized. | |
- `#sortable` is the selector of the block element where Sortable is initialized. |
|
||
For information about how to initialize a widget in a JS component or `.phtml` template, see the [Initialize JavaScript][] topic. | ||
|
||
The following example shows how to instantiate the Sortable widget: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following example shows how to instantiate the Sortable widget: | |
Use the `sortable()` function to instantiate the Sortable widget: |
Hi @jcalcaben |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there are conflicts in your PR. These need to be fixed before I can merge.
# Conflicts: # _data/toc/javascript-developer-guide.yml # guides/v2.2/javascript-dev-guide/widgets/jquery-widgets-about.md
Hey @jcalcaben |
running tests |
Purpose of this pull request
This pull request (PR) adds the documentation for the Sortable widget.
Affected DevDocs pages
This documentation will have the following links:
Page look
Links to Magento source code
whatsnew
Added the Sortable Widget topic to the JavaScript Developer Guide.