-
Notifications
You must be signed in to change notification settings - Fork 51
Sortable
Johannes Geppert edited this page Jun 26, 2015
·
1 revision
The attributes sortable="true" extends the div tag to be sortable.
Take a look at the Showcase to see what this tag provides.
####Styles:
.sortable {
border:1px solid #000;
height:20px;
margin:5px;
padding:10px;
text-align: center;
}
<sj:div
id="sortable"
sortable="true"
sortableOpacity="0.8"
sortablePlaceholder="ui-state-highlight"
sortableForcePlaceholderSize="true"
cssStyle="width: 300px;"
>
<div id="one" class="sortable ui-widget-content ui-corner-all">One</div>
<div id="two" class="sortable ui-widget-content ui-corner-all">Two</div>
<div id="three" class="sortable ui-widget-content ui-corner-all">Three</div>
<div id="four" class="sortable ui-widget-content ui-corner-all">Four</div>
<div id="five" class="sortable ui-widget-content ui-corner-all">Five</div>
<div id="six" class="sortable ui-widget-content ui-corner-all">Six</div>
<div id="seven" class="sortable ui-widget-content ui-corner-all">Seven</div>
</sj:div>
- Home
- Ajax
- UI widgets
- UI interactions
- Resizable for Divs
- Drag and Drop for Divs
- Selectable for Divs
- Sortable for Divs
- Form Elements
- Tasks