Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: On/Off toggle buttom

  1. #21
    Sencha User
    Join Date
    Apr 2011
    Location
    Spain
    Posts
    77
    Vote Rating
    1
      0  

    Default

    I continue with the same problem.
    Happens when loading a form with loadForm and between the values ??must be loaded one or more toggles.
    toggles.png
    The toggles with NO have the corect value, the others the thumb isn't clear. It's more to the rigth. But if I click on any of them display correctly, the toggles don't look good only when loading.

    Thanks

  2. #22
    Sencha User tomalex0's Avatar
    Join Date
    Apr 2009
    Location
    San Jose, CA
    Posts
    589
    Vote Rating
    20
      0  

    Default

    @fanny
    Thanks for the screen shots, can you provided me details on your testing environment.
    Is it web browser or device , which version?

    Can you also provide demo code you trying.
    Sencha Touch Demos

    IosToggleField Forum - Github
    Form Validation
    Forum - Github
    Iphone Settings Menu
    Forum
    Sqlite Storage & Login Manifest
    Forum
    KitchenSink MVC
    Forum - Github
    SqliteProxy-v1 Forum - Github
    SqliteProxy-v2
    Forum - Github
    Arshaw Fullcalendar Forum - Github






  3. #23
    Sencha User
    Join Date
    Apr 2011
    Location
    Spain
    Posts
    77
    Vote Rating
    1
      0  

    Default

    I think I fix it, but anyway thanks for the interest.
    I delete
    Code:
    this.onOrientationChange()
    in setValue

  4. #24
    Sencha User
    Join Date
    Dec 2011
    Posts
    1
    Vote Rating
    0
      0  

    Red face

    It woulds as expected. many thanks

  5. #25
    Sencha User
    Join Date
    Jan 2012
    Location
    San Antonio, Texas
    Posts
    1
    Vote Rating
    0
      0  

    Default Another method...

    Just wanted to share a method I just cooked up.. pretty simple really, and my case only required one instance, so eager to hear suggestions-

    The button:

    Code:
    items: [
    	{
    		xtype: 'button',
    		text: 'Menu',
    		toggle: 'open'
    	}
    ]
    The controller:

    Code:
    init: function(){
    	this.control({
    		'button[toggle]': {
    			tap: function(btn) {
    				if (btn.toggle == 'open'){
    					btn.toggle = 'close';
    					btn.setUi('action');
    					console.log('Open!');
    				} else {
    					btn.toggle = 'open';
    					btn.setUi('default');
    					console.log('Close!');
    				}
    			}
    		}
    	});
    }

  6. #26
    Sencha User
    Join Date
    Nov 2011
    Posts
    72
    Vote Rating
    0
      0  

    Default

    I'm confused. I tried to implement this but the CSS validator falls over on the ::after and ::before with "The pseudo-element ::before can't appear here in the context css2".

    But that's using the code on the first page of this thread, BEFORE you added the CSS3 solution.

    I also can't find a way to get Eclipse to use CSS3 validation and shut up.

    How do I use any of this?

  7. #27
    Sencha User
    Join Date
    Aug 2011
    Location
    Mumbai, India
    Posts
    120
    Vote Rating
    4
      0  

    Default

    Quote Originally Posted by jay@moduscreate.com View Post
    Cool. Moved to examples/showcases.


    Should we offer an extensions forum?
    YES you TOTALLY should

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Autoload Refresh when Click the Buttom
    By footballermahesh in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 8 Oct 2009, 7:28 PM
  2. (SOLVED) scroll dataview automatically to the buttom
    By robin30 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 21 Feb 2009, 3:06 PM
  3. in layout column to put button to buttom
    By emredagli in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 6 Aug 2008, 2:35 AM
  4. add tab from a link or a buttom
    By simpaulguy in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 29 Dec 2006, 11:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •