Rewrite the ReferenceUniverse widget as a one-liner using this.subwidget()
[mkws-moved-to-github.git] / examples / htdocs / mkws-widget-ru.js
1 mkws.registerWidgetType('ReferenceUniverse', function() {
2     //this.team.config.service_proxy_auth = "http://mkws.indexdata.com/service-proxy/?command=auth&action=login&username=paratext&password=paratext_mkc";
3     // this.team.config.perpage_default = 5;
4     // this.team.config.sort_default = "position";
5     this.node.html("<h2>Reference Universe results:</h2>\n" +
6                    this.subwidget('Records', { sort: 'position', perpage: 5 }));
7 });