Rishav Raj
Rishav Raj

Reputation: 39

Disclosure button initially hidden, then visible

I want the disclosure button to be visible on each of the items of the list only when i click an "EDIT" button. How can i do that?? I tried "list.setOnItemDisclosure(true);" on clicking the EDIT button but disclosure didn't appear.

Upvotes: 1

Views: 745

Answers (2)

Ram G Athreya
Ram G Athreya

Reputation: 4952

Manipulate the list's on item disclosure property...On click of the edit button toggle the list's onItemDisclosure property...

list.setOnItemDisclosure(true);

Upvotes: 1

Titouan de Bailleul
Titouan de Bailleul

Reputation: 12949

Just create a css class where the x-item-disclosure would be hidden :

.hidden-disclosure-list .x-list-disclosure {
  display: none;
}

Then when you want to hide them you just have to do:

list.addCls('hidden-disclosure-list');

And when you want to display them just do:

list.removeCls('hidden-disclosure-list');

Hope this helps

Upvotes: 3

Related Questions