Skip to content

Commit

Permalink
basic textarea widget
Browse files Browse the repository at this point in the history
  • Loading branch information
bago committed May 16, 2022
1 parent 9f97f37 commit 45fc3f7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/js/widgets/textarea.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"use strict";
/* global global: false */

var widgetPlugin = {
widget: function($, ko, kojqui) {
return {
widget: 'textarea',
html: function(propAccessor, onfocusbinding, parameters) {
return '<textarea value="nothing" data-bind="value: ' + propAccessor + ', ' + onfocusbinding + '"></textarea>';
}
};
},
};

module.exports = widgetPlugin;

0 comments on commit 45fc3f7

Please sign in to comment.