1. #1
    Sencha User
    Join Date
    Oct 2007
    Posts
    155
    Vote Rating
    0
    thatcoder is on a distinguished road

      0  

    Default Ext.Button toggle & tooltip

    Ext.Button toggle & tooltip


    I am trying to change the value of the tooltip on toggle.

    This is not working for me, but I couldn't find any exposed methods to support what I wanted to do. Does anyone have any suggestions on how to accomplish this?

    Code:
    var btnToggleAllMy = Ext.getCmp('btnToggleAllMy');
            
            if (btnToggleAllMy.text == "My Tasks") {
                btnToggleAllMy.setText('All Tasks');
                btnToggleAllMy.tooltip.setTitle('All Tasks');
                btnToggleAllMy.tooltip.setText('Toggle tasking requests made by other people');
                btnToggleAllMy.setHandler(Tasks.Methods.taskingShowAllTasks);
            } else if (btnToggleAllMy.text == "All Tasks") {
                btnToggleAllMy.setText('My Tasks');
                btnToggleAllMy.tooltip.setTitle('My Tasks');
                btnToggleAllMy.tooltip.setText('Toggle tasking requests made by me');
                btnToggleAllMy.setHandler(Tasks.Methods.taskingShowMyTasks);
            }

  2. #2
    Sencha User
    Join Date
    Oct 2007
    Posts
    155
    Vote Rating
    0
    thatcoder is on a distinguished road

      0  

    Default


    ^