1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    49
    Vote Rating
    0
    anmol is on a distinguished road

      0  

    Default Could not alter the existing code sample of Desktop.

    Could not alter the existing code sample of Desktop.


    Hi Guys,
    I am completely new to Ext Js.
    I want to use 'Ext Js Desktop' control for one of my projects.
    So i downloaded the sample code of 'Ext Js Desktop Control' from Sencha website.
    What i actually trying to do is - to change the name of the 'Start' button to something else.
    I found that 'TaskBar.Js' is the file which is responsible to generate the 'Start' button of the Desktop control.
    So even i change anything in the 'TaskBar.Js' it's not reflecting the change .
    So can you please tell me how to alter that example.
    Any changes in the javascript files are not reflecting in the UI, dont kno why
    Please help me to solve the issue ..........

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi anmol,
    If you want to change the start button title, then you have to change text: 'start' config of button in TaskBar.js as follows:
    Code:
    this.startBtn = new Ext.Button({
                text: 'start',  // text: 'yourTitle'
                id: 'ux-startbutton',
                iconCls:'start',
                ............................
                ............................
    });
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Thread Participants: 1