@nys-cui/cui-section 0.2.5 → 0.2.6
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 +14 -1
package/package.json
CHANGED
package/src/section.js
CHANGED
|
@@ -160,6 +160,11 @@ export default class CUI_SECTION extends HTMLElement {
|
|
|
160
160
|
|
|
161
161
|
this.sIconBasePath = this.getAttribute('iconbase') || null;
|
|
162
162
|
|
|
163
|
+
let dMessageList = this.querySelector(`[slot="section-messages"]`);
|
|
164
|
+
if(dMessageList) {
|
|
165
|
+
this._cMessageList = dMessageList;
|
|
166
|
+
}
|
|
167
|
+
|
|
163
168
|
this.render();
|
|
164
169
|
}
|
|
165
170
|
|
|
@@ -243,11 +248,19 @@ export default class CUI_SECTION extends HTMLElement {
|
|
|
243
248
|
if(!this._cMessageList)
|
|
244
249
|
{
|
|
245
250
|
this._cMessageList = document.createElement('cui-message-list');
|
|
246
|
-
this._cMessageList.slot = "messages";
|
|
251
|
+
this._cMessageList.slot = "section-messages";
|
|
247
252
|
this.appendChild(this._cMessageList);
|
|
248
253
|
}
|
|
249
254
|
|
|
250
255
|
return this._cMessageList;
|
|
251
256
|
}
|
|
252
257
|
|
|
258
|
+
reset()
|
|
259
|
+
{
|
|
260
|
+
if(this._cMessageList)
|
|
261
|
+
{
|
|
262
|
+
this._cMessageList.reset();
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
253
266
|
}
|