Framework7 - Sortable List



Description

The sortable list is a type of list view, which sorts the list view elements.

You can enable and disable the Sortable in two ways as specified in the following table −

S.No Type & Description
1 From HTML

You can enable and disable sortable by using the classes and data attributes.

2 Using JavaScript

You can enable and disable sortable by using the JavaScript code.

Sortable Events

The following table shows a list of events used in sortable list

S.No Event Target & Description
1 open

Sortable Container

When you enable the sortable, this event will get fired.

2 close

Sortable Container

When you disable the sortable, this event will get fired.

3 sort

List view Element

When you place the sorted element in new position, this event will get fired.

framework7_list_views.htm
Advertisements