How to use the bobril.isActive function in bobril

To help you get started, we’ve selected a few bobril examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github keeema / bobrilstrap / example / masterPage.ts View on Github external
bs.Li(
            {},
            bs.A(
              { href: texts.bobrilLink, target: bs.Target.Blank },
              texts.bobril
            )
          ),
          bs.Li(
            {},
            bs.A(
              { href: texts.bootsrapLink, target: bs.Target.Blank },
              texts.bootstrap
            )
          ),
          bs.Li(
            { active: b.isActive("donate") },
            b.link(
              bs.A({ onClick: handleMenuItemClick }, texts.donate),
              "donate"
            )
          )
        ]),
        bs.P({}, [
          `Written by `,
          bs.A(
            { href: texts.twitterLink, target: bs.Target.Blank },
            texts.twitter
          ),
          ` .
                    Code licensed `,
          bs.A({ href: texts.mitLink, target: bs.Target.Blank }, texts.mit),
          `.`
github keeema / bobrilstrap / example / masterPage.ts View on Github external
),
              bs.NavbarNavItem(
                { active: b.isActive("components") },
                b.link(
                  bs.A(
                    {
                      href: "javascript:void(0)",
                      onClick: handleMenuItemClick
                    },
                    "Components"
                  ),
                  "components"
                )
              ),
              bs.NavbarNavItem(
                { active: b.isActive("live-components") },
                b.link(
                  bs.A(
                    {
                      href: "javascript:void(0)",
                      onClick: handleMenuItemClick
                    },
                    "Live components"
                  ),
                  "live-components"
                )
              )
            ]),
            bs.NavbarNav({ style: bs.navStyles.navbarRight }, [
              bs.NavbarNavItem(
                {},
                bs.A(
github keeema / bobrilstrap / example / masterPage.ts View on Github external
texts.bobril
                )
              ),
              bs.NavbarNavItem(
                {},
                bs.A(
                  {
                    href: texts.bootsrapLink,
                    target: bs.Target.Blank,
                    onClick: handleMenuItemClick
                  },
                  texts.bootstrap
                )
              ),
              bs.NavbarNavItem(
                { active: b.isActive("donate") },
                b.link(
                  bs.A({ onClick: handleMenuItemClick }, texts.donate),
                  "donate"
                )
              )
            ])
          ])
        )
      ])
    ]
  );
}
github keeema / bobrilstrap / example / masterPage.ts View on Github external
bs.Span({ style: bs.navStyles.iconBar }),
              bs.Span({ style: bs.navStyles.iconBar }),
              bs.Span({ style: bs.navStyles.iconBar })
            ]
          ),
          b.link(
            bs.NavbarBrand({ href: "javascript:void(0)" }, "Bobrilstrap"),
            "bobrilstrap"
          )
        ]),
        bs.Collapse(
          { collapsed: collapsedMenu() },
          bs.NavbarCollapse({ id: "bs-navbar" }, [
            bs.NavbarNav({}, [
              bs.NavbarNavItem(
                { active: b.isActive("css") },
                b.link(
                  bs.A(
                    {
                      href: "javascript:void(0)",
                      onClick: handleMenuItemClick
                    },
                    "CSS"
                  ),
                  "css"
                )
              ),
              bs.NavbarNavItem(
                { active: b.isActive("components") },
                b.link(
                  bs.A(
                    {
github keeema / bobrilstrap / example / masterPage.ts View on Github external
bs.NavbarNav({}, [
              bs.NavbarNavItem(
                { active: b.isActive("css") },
                b.link(
                  bs.A(
                    {
                      href: "javascript:void(0)",
                      onClick: handleMenuItemClick
                    },
                    "CSS"
                  ),
                  "css"
                )
              ),
              bs.NavbarNavItem(
                { active: b.isActive("components") },
                b.link(
                  bs.A(
                    {
                      href: "javascript:void(0)",
                      onClick: handleMenuItemClick
                    },
                    "Components"
                  ),
                  "components"
                )
              ),
              bs.NavbarNavItem(
                { active: b.isActive("live-components") },
                b.link(
                  bs.A(
                    {