First commit
This commit is contained in:
38
application/demo/comment/create/comment.userLabel.js
Normal file
38
application/demo/comment/create/comment.userLabel.js
Normal file
@@ -0,0 +1,38 @@
|
||||
|
||||
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 );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user