gd-bs 6.6.63 → 6.6.64
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/build/components/nav/index.js +5 -0
- package/build/components/nav/link.js +6 -0
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/nav/index.ts +6 -0
- package/src/components/nav/link.ts +3 -0
package/package.json
CHANGED
|
@@ -55,6 +55,12 @@ class _Nav extends Base<INavProps> implements INav {
|
|
|
55
55
|
let prevTab: INavLink = null;
|
|
56
56
|
let newTab: INavLink = link;
|
|
57
57
|
|
|
58
|
+
// See if this link is disabled
|
|
59
|
+
if (link.isDisabled) {
|
|
60
|
+
// Do nothing
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
|
|
58
64
|
// Parse the links
|
|
59
65
|
for (let i = 0; i < this._links.length; i++) {
|
|
60
66
|
let link = this._links[i];
|
|
@@ -102,6 +102,9 @@ export class NavLink extends Base<INavLinkProps> implements INavLink {
|
|
|
102
102
|
// Returns true if the link is active
|
|
103
103
|
get isActive(): boolean { return this._elLink.classList.contains("active"); }
|
|
104
104
|
|
|
105
|
+
// Returns true if the link is disabled
|
|
106
|
+
get isDisabled(): boolean { return this._elLink.classList.contains("disabled"); }
|
|
107
|
+
|
|
105
108
|
// Gets the tab name
|
|
106
109
|
get tabName(): string { return this._elLink.innerHTML.trim(); }
|
|
107
110
|
set tabName(value: string) { this._elLink.innerHTML = (value || "").trim(); }
|