|
@@ -35,7 +35,7 @@ UI.Element.prototype = {
|
|
// properties
|
|
// properties
|
|
|
|
|
|
var properties = [ 'position', 'left', 'top', 'right', 'bottom', 'width', 'height', 'border', 'borderLeft',
|
|
var properties = [ 'position', 'left', 'top', 'right', 'bottom', 'width', 'height', 'border', 'borderLeft',
|
|
-'borderTop', 'borderRight', 'borderBottom', 'display', 'overflow', 'margin', 'marginLeft', 'marginTop', 'marginRight',
|
|
|
|
|
|
+'borderTop', 'borderRight', 'borderBottom', 'borderColor', 'display', 'overflow', 'margin', 'marginLeft', 'marginTop', 'marginRight',
|
|
'marginBottom', 'padding', 'paddingLeft', 'paddingTop', 'paddingRight', 'paddingBottom', 'color',
|
|
'marginBottom', 'padding', 'paddingLeft', 'paddingTop', 'paddingRight', 'paddingBottom', 'color',
|
|
'backgroundColor', 'fontSize', 'fontWeight', 'textTransform', 'cursor' ];
|
|
'backgroundColor', 'fontSize', 'fontWeight', 'textTransform', 'cursor' ];
|
|
|
|
|
|
@@ -221,6 +221,12 @@ UI.TextArea = function () {
|
|
|
|
|
|
this.onChangeCallback = null;
|
|
this.onChangeCallback = null;
|
|
|
|
|
|
|
|
+ this.dom.addEventListener( 'keyup', function ( event ) {
|
|
|
|
+
|
|
|
|
+ if ( scope.onKeyUpCallback ) scope.onKeyUpCallback();
|
|
|
|
+
|
|
|
|
+ }, false );
|
|
|
|
+
|
|
this.dom.addEventListener( 'change', function ( event ) {
|
|
this.dom.addEventListener( 'change', function ( event ) {
|
|
|
|
|
|
if ( scope.onChangeCallback ) scope.onChangeCallback();
|
|
if ( scope.onChangeCallback ) scope.onChangeCallback();
|
|
@@ -247,6 +253,14 @@ UI.TextArea.prototype.setValue = function ( value ) {
|
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+UI.TextArea.prototype.onKeyUp = function ( callback ) {
|
|
|
|
+
|
|
|
|
+ this.onKeyUpCallback = callback;
|
|
|
|
+
|
|
|
|
+ return this;
|
|
|
|
+
|
|
|
|
+};
|
|
|
|
+
|
|
UI.TextArea.prototype.onChange = function ( callback ) {
|
|
UI.TextArea.prototype.onChange = function ( callback ) {
|
|
|
|
|
|
this.onChangeCallback = callback;
|
|
this.onChangeCallback = callback;
|