Ask questions and get good answers on jQuery

Is there a way to keep docked icons in a fixed order in the dock area?

asked Nov 08 '09 at 16:05

Pedro78's gravatar image

Pedro78
411

edited Nov 08 '09 at 16:42

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129


can you give a short code-example, please?

answered Dec 15 '09 at 04:25

veela's gravatar image

veela
213

The only way is to create a specific dock for each container and set to the corresponding container the id as dock. In that way each container will dock exactly into its space and in the order you give it.

answered Nov 08 '09 at 16:10

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

Here is a short code example:

create your containers:

<div class="containerPlus draggable resizable {buttons:'m,i,c', icon:'alert.png', skin:'white', width:'500', content:'test.html',dock:'dock1',iconized:'true'}" style="top:100px;left:500px">...</div>

<div class="containerPlus draggable resizable {buttons:'m,i,c', icon:'alert.png', skin:'white', width:'500', content:'test.html',dock:'dock2',iconized:'true'}" style="top:100px;left:500px">...</div>

<div class="containerPlus draggable resizable {buttons:'m,i,c', icon:'alert.png', skin:'white', width:'500', content:'test.html',dock:'dock3',iconized:'true'}" style="top:100px;left:500px">...</div>

As you can see I set for each container a specific "dock" property.

Now, in your dock area you set an element for each container with the ID specified:

<div class="dockArea"><span id="dock1"></span> <span id="dock2"></span> <span id="dock3"> </span></div>

When you'll dock the containers they will have their specific place.

answered Dec 23 '09 at 18:50

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×1
×1

Asked: Nov 08 '09 at 16:05

Seen: 310 times

Last updated: Dec 23 '09 at 18:50

Related questions

jQuery main site - Matteo Bicocchi