Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1845
Extending IG Controls
posted

Is there any reference on how to add additional methods to IG controls?

Parents
No Data
Reply
  • 80
    Suggested Answer
    posted

    You can try this way :

      // If you dont need to call original method
        $.widget("ui.addresspicker", $.extend({}, $.ui.addresspicker.prototype, {
          _updatePosition: function(){
            // Do what you want to
          }
        }));

        // If you need to call original method
        var _updatePosition = $.ui.addresspicker.prototype._updatePosition;
        $.widget("ui.addresspicker", $.extend({}, $.ui.addresspicker.prototype, {
          _updatePosition: function(){
            // Do what you want to
            // Call original widget method  
            _updatePosition.apply(this, arguments);
          }
        }));

Children
No Data