-
4 Oct 2010 6:24 AM #1
Modifying disclosure button in list item
Modifying disclosure button in list item
Hello,
I am trying to modify the disclosure button on a list item, specifically its position. Is there a way to do this with CSS? Ideally I would like to use a custom image for the disclosure... Any insight?
-
4 Oct 2010 8:06 AM #2
Just override the css.
I did it by putting something like this in my css file:
Modify the position in the same manner as shown above.Code:.x-disclosure { height: 24px; width: 24px; -webkit-mask-box-image: url('data:image/png;base64,iVB...); //shortened for readability }Last edited by fx-mike; 4 Oct 2010 at 8:07 AM. Reason: formatting was ugly
-
4 Oct 2010 9:26 AM #3
-
4 Oct 2010 11:53 AM #4
change image
change image
Is there a way to change the image without using base64?
-
5 Oct 2010 6:00 AM #5
I have a similar problem. But i would like to set the disclosure indicator similar to the one used by the SDK (ie. UITV_accessory_disclosure.png for next level and UITV_accessory_detail.pngfor details).
I would like to define .x-disclosure1 {} and .x-disclosure2 {} in css and set these classes to my list items.
How can i set the disclosure css class by javascript? can i use one of the config property of list object?
Thanks..
-
11 Oct 2010 10:03 AM #6
i tried to use this code but i have a blue square box... what's the reason for this strange display?
-
12 Oct 2010 10:55 PM #7
i found the solution... the problem was the image size. i tried to use an image bigger than 24px and so only a part of it was displayed...
using a resized image now works..
-
20 Oct 2010 5:50 PM #8
Hi,
I wonder if I can use the image url like ---webkit-mask-box-image: url(urlpath) as I would like to use my own image for the disclosure?
many thanks
-
21 Oct 2010 5:51 AM #9
Sure, thats what url() is for. But as far as I know the path will be relative to your css file, so watch out for that.
-
21 May 2011 9:35 AM #10
Is this still the way to modify the list item disclosure icon in 1.1.0? It's not working for me.
Thanks.Code:.x-disclosure { height: 24px; width: 24px; -webkit-mask-box-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEU..blah..blah..blah'); }
Similar Threads
-
disclosure and itemtap on list
By stefx in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 2 Sep 2011, 4:23 AM -
[SOLVED] Problem with List Disclosure
By unpurposed in forum Sencha Touch 1.x: DiscussionReplies: 0Last Post: 11 Aug 2010, 6:18 AM -
a button in the list item, is it possible?
By abe8810 in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 5 Oct 2007, 8:26 AM


Reply With Quote