| define(['app/en','buttongroup', 'plugin/server','lib/domReady','init','hint/foundries/cnx'], function (lang, buttonGroupClass, pluginClass, domReady) { |
| KorAP.Plugin = pluginClass.create(); |
| 'desc' : 'Some content about cats', |
| // 'about' : 'https://localhost:5678/', |
| 'classes' : ['translate'], |
| 'template' : 'http://localhost:3003/demo/plugin-client.html', |
| var btns = buttonGroupClass.create(); |
| document.getElementById('buttons').appendChild(btns.element()); |
| // Are there plugin buttons defined |
| var matchButtons = KorAP.Plugin.buttonGroup("match"); |
| // Add all matchbuttons in order |
| for (i in matchButtons) { |
| btns.add.apply(btns, matchButtons[i]); |