gd-bs 6.6.30 → 6.6.32
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/navbar/index.js +9 -0
- package/build/components/table/index.js +3 -3
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +2 -1
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/index.html +10 -8
- package/package.json +1 -1
- package/src/components/navbar/index.ts +10 -0
- package/src/components/navbar/types.d.ts +1 -0
- package/src/components/table/index.ts +3 -3
- package/src/components/table/types.d.ts +1 -1
|
@@ -94,6 +94,15 @@ var _Navbar = /** @class */ (function (_super) {
|
|
|
94
94
|
_Navbar.prototype.configureEvents = function () {
|
|
95
95
|
var _this = this;
|
|
96
96
|
var props = this.props.searchBox || {};
|
|
97
|
+
// See if the brand element and click event exist
|
|
98
|
+
var brand = this.el.querySelector(".navbar-brand");
|
|
99
|
+
if (brand && this.props.onClickBrand) {
|
|
100
|
+
// Set the click event
|
|
101
|
+
brand.addEventListener("click", function (ev) {
|
|
102
|
+
// Call the event
|
|
103
|
+
_this.props.onClickBrand(brand, ev);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
97
106
|
// See if search events exist
|
|
98
107
|
var searchbox = this.el.querySelector("form input");
|
|
99
108
|
if (searchbox) {
|
|
@@ -119,7 +119,7 @@ var _Table = /** @class */ (function (_super) {
|
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
// Renders a row
|
|
122
|
-
_Table.prototype.renderRow = function (row, data) {
|
|
122
|
+
_Table.prototype.renderRow = function (row, data, rowIdx) {
|
|
123
123
|
// See if columns
|
|
124
124
|
for (var i = 0; i < this.props.columns.length; i++) {
|
|
125
125
|
// Create the cell
|
|
@@ -128,7 +128,7 @@ var _Table = /** @class */ (function (_super) {
|
|
|
128
128
|
// See if there is an event
|
|
129
129
|
if (this.props.onRenderRow) {
|
|
130
130
|
// Call the event
|
|
131
|
-
this.props.onRenderRow(row, data);
|
|
131
|
+
this.props.onRenderRow(row, data, rowIdx);
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
/**
|
|
@@ -145,7 +145,7 @@ var _Table = /** @class */ (function (_super) {
|
|
|
145
145
|
var row = document.createElement("tr");
|
|
146
146
|
tbody.appendChild(row);
|
|
147
147
|
// Render the row
|
|
148
|
-
this.renderRow(row, rows[i]);
|
|
148
|
+
this.renderRow(row, rows[i], i);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
};
|