|
Title: Change panel tools dynamically? Post by: tomb on August 24, 2014, 07:51:49 PM How can I change a panel's tool dynamically after the panel was created? Is there a method I can call that rebuilds the tools after I change the tools property?
Title: Re: Change panel tools dynamically? Post by: jarry on August 24, 2014, 09:04:22 PM It is easy to extend a method to set the panel tools.
Code: $.extend($.fn.panel.methods, {Usage example: Code: $('#p').panel('setTools', [{Title: Re: Change panel tools dynamically? Post by: tomb on August 25, 2014, 07:23:13 AM Awesome! This framework is just so cool! I assume I'd have to do something similar for modifying a dialog's buttons dynamically, as well. Seems like some good new features for the next version.
|