coer-elements 0.0.76 → 0.0.77
Sign up to get free protection for your applications and to get access to all the features.
@@ -2851,9 +2851,9 @@ class CoerTreeAccordion {
|
|
2851
2851
|
|| (this.isCollapsed && element.classList.contains('active-link'));
|
2852
2852
|
};
|
2853
2853
|
/** */
|
2854
|
-
this.IsMenu = (item) =>
|
2854
|
+
this.IsMenu = (item) => Tools.IsNotNull(item) && Tools.IsNotOnlyWhiteSpace(item?.items);
|
2855
2855
|
/** */
|
2856
|
-
this.IsGrid = (item) =>
|
2856
|
+
this.IsGrid = (item) => Tools.IsNotNull(item) && Tools.IsNotOnlyWhiteSpace(item?.show) && item.show === 'GRID';
|
2857
2857
|
/** */
|
2858
2858
|
this.GetGridIcon = (icon) => Tools.IsNotOnlyWhiteSpace(icon) ? icon : 'fa-solid fa-grip';
|
2859
2859
|
}
|
@@ -2997,9 +2997,9 @@ class CoerSidenav {
|
|
2997
2997
|
//Outputs
|
2998
2998
|
this.onMenuSelected = output();
|
2999
2999
|
/** */
|
3000
|
-
this.IsMenu = (item) =>
|
3000
|
+
this.IsMenu = (item) => Tools.IsNotNull(item) && Tools.IsNotOnlyWhiteSpace(item?.items);
|
3001
3001
|
/** */
|
3002
|
-
this.IsGrid = (item) =>
|
3002
|
+
this.IsGrid = (item) => Tools.IsNotNull(item) && Tools.IsNotOnlyWhiteSpace(item?.show) && item.show === 'GRID';
|
3003
3003
|
/** */
|
3004
3004
|
this.GetIcon = (item) => {
|
3005
3005
|
if (Tools.IsNotNull(item) && Tools.IsNotOnlyWhiteSpace(item.icon)) {
|