Files
Unify/application/demo/comment/create/comment.userLabel.js

39 lines
487 B
JavaScript
Raw Permalink Normal View History

2025-12-25 11:16:59 +01:00
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 );
}
}