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
    6,062
    Vote Rating
    215
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      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

Thread Participants: 1

Tags for this Thread