39 lines
487 B
JavaScript
39 lines
487 B
JavaScript
|
|
|
||
|
|
import input from '/elements/input.js';
|
||
|
|
|
||
|
|
export default class userLabel extends input{
|
||
|
|
|
||
|
|
float = "right";
|
||
|
|
|
||
|
|
useCustomElement = false;
|
||
|
|
|
||
|
|
height = 20;
|
||
|
|
|
||
|
|
float = "right";
|
||
|
|
|
||
|
|
marginLeft = 100;
|
||
|
|
|
||
|
|
marginTop = 20;
|
||
|
|
|
||
|
|
|
||
|
|
setAuthor( author ) {
|
||
|
|
|
||
|
|
if( author.username ) {
|
||
|
|
|
||
|
|
this.value = "author: " + author.username.value;
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
create() {
|
||
|
|
|
||
|
|
var author = this.parent.parent.author;
|
||
|
|
|
||
|
|
this.setAuthor( author );
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|