Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "components/navbar.d"

Index

Type aliases

INavbarTypes

INavbarTypes: { Dark: number; Light: number; Primary: number }

Navbar Types

Type declaration

  • Dark: number
  • Light: number
  • Primary: number

Variables

Const Navbar

Navbar: (props: INavbarProps) => INavbar
import { Components } from "gd-sprest-bs";

// Create the navbar
let el = document.querySelector("#navbar");
let navbar = Components.Navbar({
    el: el,
    brand: "Navbar",
    searchBox: {
        onChange: (value) => {
            // Log the value
            console.log("The search value is: " + value);
        },
        onSearch: (value) => {
            // Log the value
            console.log("The search value is: " + value);
        }
    },
    items: [
        {
            text: "Home",
            isActive: true
        },
        {
            text: "Link"
        },
        {
            text: "Disabled Link",
            isDisabled: true
        },
        {
            text: "Dropdown Link",
            items: [
                { text: "Link 1" },
                { text: "Link 2" },
                { text: "Link 3" },
                { text: "Link 4" },
                { text: "Link 5" }
            ]
        }
    ]
});

Type declaration

Const NavbarTypes

NavbarTypes: INavbarTypes

Navbar Types

Generated using TypeDoc