PDA

View Full Version : onItemDisclosure in NestedList



m@uce
2 Feb 2011, 10:52 AM
I'm trying to conditionally provide an item disclosure, only on the leaf elements of my nestedlist. I've been unsuccessful after some time spent trying to set the onItemDisclosure value to either false or a function from a nestedlist event. Any recommendations?

art.home.ext
27 Feb 2011, 8:17 AM
[EDIT] Found this thread : http://www.sencha.com/forum/showthread.php?106717-DISCUSS-Exclude-list-disclosure-icon-from-individual-it

Hi !
I'm trying to do it as well, unsuccessfully.


<div class="x-list-item x-item-selected">
<div class="x-list-item-body">
<span class="x-list-item-leaf">TEXT</span>
</div>
<div class="x-list-disclosure"></div>
</div>

I unsuccessfully tried to set it with css.
I'd like to have a selector like :

.x-list-item-body[ My firstchild has class x-list-item-leaf ] ~ .x-list-disclosure {
display:none;
}

any idea ?