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

35 lines
465 B
JavaScript
Raw Permalink Normal View History

2025-12-25 11:16:59 +01:00
import input from '/elements/input.js';
import label from '/elements/label.js';
export default class userLabel extends label {
float = "left";
fontWeight = "bold";
padding = "12px";
paddingLeft = 26;
setAuthor( author ) {
if( author.username ) {
this.text = author.username.value;
}
}
create() {
var author = this.parent.parent.author;
this.setAuthor( author );
}
}