1. #1
    Sencha User
    Join Date
    Apr 2008
    Posts
    51
    Vote Rating
    0
    Michou is on a distinguished road

      0  

    Default Kitchen sink backButton ui

    Kitchen sink backButton ui


    I'm using Kitchen sink example to explore ST API and i have a little problem.
    I want to replace the backButton of the navigation panel with an icon (reply) with no borders (mask plain).

    The backButton of the navigation panel is describe like this :
    Code:
    this.backButton = new Ext.Button({
        text: this.backText,
        ui: 'back',
        handler: this.onUiBack,
        hidden: true,
        scope: this
    });
    I change it like this :
    Code:
    this.backButton = new Ext.Button({
        iconCls: 'reply',
        iconMask: true,
        ui: 'plain',
        handler: this.onUiBack,
        hidden: true,
        scope: this
    });
    it works on iPhone but not when i 'm on Chrome/PC
    so after :
    Code:
    this.navigationPanel = new Ext.NestedList({
        store: sink.StructureStore,
        useToolbar: Ext.is.Phone ? false : true,
        updateTitleText: false,
        dock: 'left',
        hidden: !Ext.is.Phone && Ext.orientation == 'portrait',
        toolbar: Ext.is.Phone ? this.navigationBar : null,
        listeners: {
            itemtap: this.onNavPanelItemTap,
            scope: this
        }
    });
    i add :
    Code:
    this.navigationPanel.backButton.setText(null);
    this.navigationPanel.backButton.iconCls = 'reply';
    this.navigationPanel.backButton.iconMask = true,
    this.navigationPanel.backButton.ui = 'plain';
    and i have my icon on Chrome/PC but also still appearing a 'back' text before the icon and i don't know what to do.

    thanks

  2. #2
    Sencha User
    Join Date
    Apr 2008
    Posts
    51
    Vote Rating
    0
    Michou is on a distinguished road

      0  

    Default


    same problem with 0.96
    normal because i suppose it's my way of coding the problem...

Similar Threads

  1. TabBar to contain kitchen sink example?
    By omulriain in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 19 Sep 2010, 2:28 PM
  2. Remove a dock in kitchen sink
    By blessan in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 14 Sep 2010, 8:43 PM
  3. How to add class in Kitchen Sink 0.94?
    By blessan in forum Sencha Touch 1.x: Discussion
    Replies: 5
    Last Post: 9 Sep 2010, 9:18 PM
  4. add new panel in kitchen sink demo
    By gimox in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 6 Sep 2010, 5:30 AM
  5. Question to Cards of Kitchen Sink/ Events Example
    By msinn in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 30 Jul 2010, 12:53 PM