1 mkws.registerWidgetType('Builder', function() {
5 this.button = $('<button/>', {
7 text: this.config.text || "Build!"
9 $(this.node).append(this.button);
10 this.button.click(function() {
11 var query = team.widget('Query').value();
12 var sort = team.widget('Sort').value();
13 var perpage = team.widget('Perpage').value();
15 var html = ('<div class="mkwsRecords" ' +
16 'autosearch="' + query + '" ' +
17 'sort="' + sort + '" ' +
18 'perpage="' + perpage + '"></div>');
19 var fn = that.callback || alert;
24 mkws.registerWidgetType('ConsoleBuilder', function() {
25 mkws.promotionFunction('Builder').call(this);
26 this.callback = function(s) {
27 console.log("Generated widget: " + s);