Results 1 to 3 of 3

Thread: Change the theme and align right

  1. #1
    Ext User
    Join Date
    Jul 2007
    Posts
    11

    Default Change the theme and align right

    hello all
    I hava two problem

    1.
    I change theme like this and it works well
    Code:
    Ext.util.CSS.swapStyleSheet("theme","ext/resources/css/xtheme-gray.css")
    but how can I chang it back to classic blue theme,this code does not work
    Code:
    Ext.util.CSS.removeStyleSheet("theme");
    2.
    I add a ComboBox in the Toolbar,and I want it align right,how can I do?

    Code:
    var combo = new Ext.form.ComboBox({
    	    store: store,
    	    displayField:'theme',
    	    typeAhead: true,
    	    mode: 'local',
    	    triggerAction: 'all',
    	    emptyText:'change theme,
    	    selectOnFocus:true,
    	    width:120
    	});
    tb.add(combo);
    My Ext is 1.1,thaks all

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750

    Default

    2. addFill

    Code:
    var combo = new Ext.form.ComboBox({
    	    store: store,
    	    displayField:'theme',
    	    typeAhead: true,
    	    mode: 'local',
    	    triggerAction: 'all',
    	    emptyText:'change theme,
    	    selectOnFocus:true,
    	    width:120
    	});
    tb.addFill();
    tb.add(combo);

  3. #3
    Ext User
    Join Date
    Jul 2007
    Posts
    11

    Default

    Quote Originally Posted by fay View Post
    2. addFill

    Code:
    var combo = new Ext.form.ComboBox({
    	    store: store,
    	    displayField:'theme',
    	    typeAhead: true,
    	    mode: 'local',
    	    triggerAction: 'all',
    	    emptyText:'change theme,
    	    selectOnFocus:true,
    	    width:120
    	});
    tb.addFill();
    tb.add(combo);

    thanks fay,thanks very much

Posting Permissions

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