41 lines
514 B
JavaScript
41 lines
514 B
JavaScript
|
|
|
||
|
|
|
||
|
|
import column from '/unify/column.js';
|
||
|
|
|
||
|
|
|
||
|
|
export default class title extends column {
|
||
|
|
|
||
|
|
padding = 20;
|
||
|
|
|
||
|
|
color = "black";
|
||
|
|
|
||
|
|
label = "title";
|
||
|
|
|
||
|
|
useCustomElement = true;
|
||
|
|
|
||
|
|
|
||
|
|
async keyup( event ){
|
||
|
|
|
||
|
|
this.value = event.target.value;
|
||
|
|
|
||
|
|
this.animate(150, 400, function( value ){
|
||
|
|
|
||
|
|
this.height = value;
|
||
|
|
|
||
|
|
})
|
||
|
|
|
||
|
|
var result = await this.socketManager.get( "column", "update", this, "keyup" );
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
serverKeyup( object ) {
|
||
|
|
|
||
|
|
this.value = object.value;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|