sortable-multi-base-fish.mustache revision 6157a882a99ffd610651fecda412fcacff150d57
1N/A<p>First we need to create the HTML structure for the lists. Since `Sortable` uses `Y.DD.Delegate`, we need to set up the delegation containers (`#list1, #lists2`) and the list items (`li`).</p>
1N/A<p>Now that we have a YUI instance with the `sortable` module, we need to instantiate a `Sortable` instance on each of the lists.</p>
14N/A<p>Since `Sortable` uses `DD.Delegate`, there is a dd instance available after instantiation.</p>
221N/A<p>The `DD.Delegate` reference is found on the `.delegate` property of the `Sortable`.
14N/AThis `DD.Delegate` instance has a `DD.Drag` instance bound to the `dd` property on the `DD.Delegate`
22N/A<p>Applying the `Plugin.DDConstrained` to the `Sortable` instance.</p>