Further to this thread, I have needed a method to update a tab panel body, but I was struggling to find a method to do this.
Can anyone comment if this looks ok?
// Add a tab update method that will work from local variables.
$.extend($.fn.tabs.methods, {
updateNoAjax: function (jq, param) {
return jq.each(function () {
var t = $(param.tab);
var opts = t.panel('options');
opts.title = param.options.title;
var tt = opts.tab.find('.tabs-title')
tt.html(param.options.title);
opts.content = param.options.content;
t.html(param.options.content);
$.parser.parse(t);
})
}
})
Edit: Without
$.parser.parse(t); the panel did not populate the easyui controls.