gd-bs 6.0.8 → 6.1.0
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 +3 -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 +3 -0
package/package.json
CHANGED
|
@@ -276,6 +276,19 @@ class _Navbar extends Base<INavbarProps> implements INavbar {
|
|
|
276
276
|
* Public Methods
|
|
277
277
|
*/
|
|
278
278
|
|
|
279
|
+
// Returns the current search value
|
|
280
|
+
getSearchValue() {
|
|
281
|
+
// Get the searchbox element
|
|
282
|
+
let searchbox = this.el.querySelector("form input") as HTMLInputElement;
|
|
283
|
+
if (searchbox) {
|
|
284
|
+
// Return the value
|
|
285
|
+
return searchbox.value;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// Return nothing by default
|
|
289
|
+
return "";
|
|
290
|
+
}
|
|
291
|
+
|
|
279
292
|
// Updates the navbar template type
|
|
280
293
|
setType(navbarType: number) {
|
|
281
294
|
// Remove the classes
|