gd-bs 5.5.3 → 5.5.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/build/bs.js +1 -1
- package/build/components/nav/index.js +10 -3
- package/build/components/navbar/index.js +2 -0
- package/dist/gd-bs-icons.js +14 -3
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +2 -0
- package/dist/gd-bs.js +3 -3
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/bs.scss +4 -0
- package/src/components/nav/index.ts +12 -3
- package/src/components/nav/types.d.ts +1 -0
- package/src/components/navbar/index.ts +3 -0
- package/src/components/navbar/types.d.ts +1 -0
|
@@ -30,6 +30,8 @@ var _Nav = /** @class */ (function (_super) {
|
|
|
30
30
|
_this._links = null;
|
|
31
31
|
// Configure the collapse
|
|
32
32
|
_this.configure(itemTemplate);
|
|
33
|
+
// Configure the events
|
|
34
|
+
_this.configureEvents();
|
|
33
35
|
// Configure the parent
|
|
34
36
|
_this.configureParent();
|
|
35
37
|
return _this;
|
|
@@ -49,8 +51,13 @@ var _Nav = /** @class */ (function (_super) {
|
|
|
49
51
|
// Render the nav links
|
|
50
52
|
this.renderItems(itemTemplate);
|
|
51
53
|
};
|
|
52
|
-
//
|
|
53
|
-
_Nav.prototype.configureEvents = function (
|
|
54
|
+
// Configure the events
|
|
55
|
+
_Nav.prototype.configureEvents = function () {
|
|
56
|
+
// Execute the event(s)
|
|
57
|
+
this.props.onRendered ? this.props.onRendered(this.el) : null;
|
|
58
|
+
};
|
|
59
|
+
// Configures the tab link event
|
|
60
|
+
_Nav.prototype.configureTabEvents = function (tab) {
|
|
54
61
|
var _this = this;
|
|
55
62
|
// Add a click event
|
|
56
63
|
tab.el.addEventListener("click", function () {
|
|
@@ -91,7 +98,7 @@ var _Nav = /** @class */ (function (_super) {
|
|
|
91
98
|
// See if we are rendering tabs
|
|
92
99
|
if (tabs) {
|
|
93
100
|
// Configure the events
|
|
94
|
-
this.
|
|
101
|
+
this.configureTabEvents(link);
|
|
95
102
|
// Add the tab content
|
|
96
103
|
tabs.appendChild(link.elTabContent);
|
|
97
104
|
// See if the fade option is enabled
|