1. #1
    Ext JS Premium Member
    Join Date
    Aug 2010
    Posts
    76
    Vote Rating
    0
    ajit.mankottil is on a distinguished road

      0  

    Default Dynamic Tool tip for Form Control

    Dynamic Tool tip for Form Control


    Hi, I have add the tool tip on textfield at afterRender event. It is working but I want to update the tooltip base on some condition after get the data from database. How can I update?

    Thanks,
    Alex

    Here is my current method.
    Code:
    var txtMake = {
            xtype: 'textfield',
            fieldLabel: 'Make',
            id: 'txtMake',
            name: 'Make',
            anchor: '95%',
            readOnly: true,
            qtip: 'This is a tip from Form!'
        };
    Code:
    Ext.override(Ext.form.Field, { 
        afterRender: Ext.form.Field.prototype.afterRender.createSequence(function () {
            var qt = this.qtip;
            if (qt) {
                Ext.QuickTips.register({
                    target: this,
                    title: '',
                    text: qt,
                    enabled: true,
                    showDelay: 20
                });
            }
        })
    });

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,021
    Vote Rating
    183
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    Hi,

    Try unregistering / registering the tooltip with a setter method like in this example:

    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

    C
    heck out all of the 2013 SenchaCon presentations here:
    http://www.sencha.com/blog/senchacon...now-available/

Thread Participants: 1

Tags for this Thread