gd-bs 6.0.8 → 6.0.9
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 +11 -0
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +1 -0
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/navbar/index.ts +13 -0
- package/src/components/navbar/types.d.ts +1 -0
|
@@ -264,6 +264,17 @@ var _Navbar = /** @class */ (function (_super) {
|
|
|
264
264
|
/**
|
|
265
265
|
* Public Methods
|
|
266
266
|
*/
|
|
267
|
+
// Returns the current search value
|
|
268
|
+
_Navbar.prototype.getSearchValue = function () {
|
|
269
|
+
// Get the searchbox element
|
|
270
|
+
var searchbox = this.el.querySelector("form input");
|
|
271
|
+
if (searchbox) {
|
|
272
|
+
// Return the value
|
|
273
|
+
return searchbox.value;
|
|
274
|
+
}
|
|
275
|
+
// Return nothing by default
|
|
276
|
+
return "";
|
|
277
|
+
};
|
|
267
278
|
// Updates the navbar template type
|
|
268
279
|
_Navbar.prototype.setType = function (navbarType) {
|
|
269
280
|
// Remove the classes
|