Personal tools
You are here: Home Blogs Myroslav Opyr KSS Opener Controlling Controller of KSS Opener
Document Actions

Controlling Controller of KSS Opener

KSS Opener offers several configurable parameters that enables its real-world use. One of the most useful ones is ability to control where controller (small clickable handle) is injected in the page.

In the case you need your opener controller to be inserted into specific place, you can use pair of controllerPlacementSelector parameters:

dl:opener-init{
evt-init-elementSelector: '> dd';
evt-init-controllerPlacementSelector: '> dt';
}

if the above sample is applied to following HTML code:

<dl>
<dt>History</dt>
<dd>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum
iaculis eros eu purus. Integer accumsan leo id lorem viverra vulputate.
Donec feugiat nunc molestie massa nonummy pulvinar. Proin porta pede
sit amet lectus. Duis leo urna, tempor non, condimentum condimentum,
commodo non, libero. Integer feugiat, pede at.
</dd>
</dl>

And the result is:

The whole definition list has opener assigned. Controller (clickable handle) is inserted into <dt> element, not in root of list (that can confuse some browsers). This is why I avoided dl/dt/dd example in my introduction post.

_____
tags:
Tuesday, March 20, 2007  | Permalink |  Comments (0)
trackback URL:  http://talk.quintagroup.com/blogs/myroslav/kss-opener/controller/sbtrackback
del.icio.us   Digg   Yahoo   Google   Spurl
Myroslav Opyr
« July 2008 »
Su Mo Tu We Th Fr Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31