var that = this;
var team = this.team;
- this.button = $('<button/>', {
+ this.button = mkws.$('<button/>', {
type: 'button',
text: this.config.text || "Build!"
});
- $(this.node).append(this.button);
+ this.jqnode.append(this.button);
this.button.click(function() {
var query = team.widget('Query').value();
var sort = team.widget('Sort').value();
});
mkws.registerWidgetType('ConsoleBuilder', function() {
- mkws.promotionFunction('Builder').call(this);
+ mkws.promotionFunction('Builder').call(this);
this.callback = function(s) {
console.log("Generated widget: " + s);
}