Results 1 to 2 of 2

Thread: Dynamic Tool tip for Form Control

  1. #1
    Ext JS Premium Member
    Join Date
    Aug 2010
    Posts
    81
    Vote Rating
    1
      0  

    Default 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,154
    Vote Rating
    249
      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 human resources manager: fabienne.bell@sencha.com

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •