@nys-cui/cui-section 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/section.js +15 -0
package/package.json
CHANGED
package/src/section.js
CHANGED
|
@@ -16,6 +16,8 @@ export default class CUI_SECTION extends HTMLElement {
|
|
|
16
16
|
|
|
17
17
|
this.sIconBasePath = null;
|
|
18
18
|
|
|
19
|
+
this._cMessageList;
|
|
20
|
+
|
|
19
21
|
// Key Shadow DOM Fields
|
|
20
22
|
this.sdSection = null;
|
|
21
23
|
this.sdSectionTitle = null;
|
|
@@ -60,6 +62,7 @@ export default class CUI_SECTION extends HTMLElement {
|
|
|
60
62
|
|
|
61
63
|
sTemplate += `</header><div class="container" id="container" part="container">
|
|
62
64
|
<slot name="section-text"></slot>
|
|
65
|
+
<slot name="section-messages"></slot>
|
|
63
66
|
<slot name="section-contents"></slot>
|
|
64
67
|
<slot name="section-footer"></slot>
|
|
65
68
|
</div></section>`;
|
|
@@ -235,4 +238,16 @@ export default class CUI_SECTION extends HTMLElement {
|
|
|
235
238
|
|
|
236
239
|
}
|
|
237
240
|
|
|
241
|
+
get messages()
|
|
242
|
+
{
|
|
243
|
+
if(!this._cMessageList)
|
|
244
|
+
{
|
|
245
|
+
this._cMessageList = document.createElement('cui-message-list');
|
|
246
|
+
this._cMessageList.slot = "messages";
|
|
247
|
+
this.appendChild(this._cMessageList);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
return this._cMessageList;
|
|
251
|
+
}
|
|
252
|
+
|
|
238
253
|
}
|