We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 836ad31 commit 66524c3Copy full SHA for 66524c3
1 file changed
html/chat-room/html/chat-room-hdr/chat-room-hdr.html
@@ -8,11 +8,17 @@
8
9
#hdr
10
{}
11
+ #title
12
+ {text-align:center;font-size:20px;font-weight:bold;color:gray;text-align:center;padding:20px}
13
14
</style>
15
16
17
<section id=hdr>
18
+
19
+ <div id=title>
20
+ </div>
21
22
</section>
23
24
@@ -37,17 +43,47 @@
37
43
}//initmod
38
44
39
45
46
+ //:
47
48
49
+ var ui = {};
50
51
52
53
54
40
55
obj.init = async function(){
41
56
debug=eval(debug.mod);
42
57
debug('init');
58
}//init
59
60
61
62
63
64
obj.initdom = async function(){
65
debug('initdom');
66
+ shadow = host.shadowRoot;
67
68
+ ui.title = $(shadow,'#title');
69
70
71
72
}//initdom
73
74
75
76
77
78
+ obj.title = function(title){
79
80
+ $(ui.title).textContent = title;
81
82
+ }//title
83
84
85
86
87
return obj;
88
89
//chat-room-hdr
0 commit comments