Section |
---|
Column |
---|
| Info |
---|
This documentation refers to the API documents for the v0.4 released version of the Fluid Infusion code. For documentation specific to the trunk version, please see List Reorderer Tutorial |
This page will walk you through an example of using the Fluid Reorderer's reorderList() function to reorder a list in an HTML file. This tutorial assumes that: - you are already familiar with HTML, Javascript and CSS
- you are familiar with what the Reorderer is and does
- now you just want to know how to add it to your file.
For more general information about the Reorderer, see Reorderer. For technical API documentation, see Simple List Reorderer API - v0.4 and Reorderer API - v0.4. Tutorial: How to Use the List ReordererScenarioYou are organizing a small conference, and there is lots to do. Being the organized person you are, you create a to-do list. You'd like to use the Reorderer to allow the order of items to be changed. This tutorial will show you how to use the Fluid List Reorderer for this. There are four basic steps to using the List Reorderer in your application: - Step 0: Download and install the Fluid Infusion library
- Step 1: Prepare your markup
- Step 2: Write the script
- Step 3: Add the script to your HTML
- Step 4: Apply styles
The rest of this tutorial will explain each of these steps in detail. |
Column |
---|
Panel |
---|
borderColor | #566b30 |
---|
bgColor | #fff |
---|
titleBGColor | #D3E3C4 |
---|
title | On This Page |
---|
borderStyle | solid |
---|
| Table of Contents |
---|
maxLevel | 5 |
---|
minLevel | 2 | maxLevel | 5 |
---|
|
|
Panel |
---|
borderColor | #321137 |
---|
bgColor | #fff |
---|
titleBGColor | #c1b7c3 |
---|
title | See Also |
---|
borderStyle | solid |
---|
| |
Panel |
---|
borderColor | #321137 |
---|
bgColor | #fff |
---|
titleBGColor | #cccccc |
---|
title | Still need help? |
---|
borderStyle | solid |
---|
| Join the fluid-talk mailing list and ask your questions there. |
|
|
...
If we add a stylesheet with these styles (along with some global styles to make the font look a bit nicer, etc.), your list will look like this:
Center |
---|
Image Modified |
When you hover over an item, it will be apparent:
Center |
---|
Image Modified |
If you use the tab and arrow keys to select an item, you'll be able to tell:
Center |
---|
Image Modified |
And while you're dragging, you'll be able to tell where the drop will happen:
Center |
---|
Image Modified |
...