Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wolf_and_associates/navbar

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wolf_and_associates/navbar

A navbar for use with Wolf & Associates projects. Works directly with `@wolf_and_associates/popover` to display complex navigation needs.

  • 0.0.12
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

WolfLTC Navbar

A navbar for use with Wolf & Associates projects. Works directly with @wolf_and_associates/popover to display complex navigation needs.

Requirements

This library must use the same Angular Compiler version as the project you are adding it to.

Usage

Import the NavbarModule in your project's app.module.ts:

import { NavbarModule } from '@wolf_and_associates/navbar';

@NgModule({
  // ...
  imports: [
    // ...
    NavbarModule
  ]
})

Inputs

InputTypeDefaultsRequiredDescription
logo_urlstringtrueThe navbar image source URL
brand_titlestringfalseThe navbar brand title
show_logoutbooleantruefalseShow the logout button, when clicked emits onLogoutClick
itemsPopoverMenuItem[][]trueThe items in the menu
show_brand_title_at_topbooleantruefalseShould the brand title text be shown while at the top of the page

Events

EventParametersDescription
onLogoutClickEventEmitterThe user clicked the logout button
onPopoverMenuClosedEventEmitter<ComponentRef>When the popover closes
onPopoverMenuOpenEventEmitter<ComponentRef>When the popover opens
onContentOutletClickEventEmitterThe user clicked a content_outlet PopoverMenuItem
onIframeOutletClickEventEmitterThe user clicked an iframe PopoverMenuItem
onIframeOutletOpenEventEmitterWhen the iframe popover opens
onIframeOutletClosedEventEmitterWhen the iframe popover closes

Properties

PropertyTypeDefaultsDescription
mobile_collapsedbooleantrueIs the menu collapsed (mobile only)
iframe_popover_urlstringThe URL that is used in the popover iframe
iframe_popover_close_btnbooleantrueShould the iframe close button be visible
popovers{ subscriptions: Subscription[]; component: ComponentRef }[]All open popovers

Methods

MethodParametersDescription
closeAllPopoversClose all popovers
toggleMobileCollapseToggles the navbar menu for mobile
closeIframePopoverClose the open iFrame popover
closePopoverMenuClose the most recently opened Popover
onIframeOutletClickedevent: PopoverMenuItemLoad an iframe popover. If using the wolfltc.com/calculators endpoint, the close button is disabled by default
onIframeClosedThe user closed the iframe popover
onIframeOpenThe user opened the iframe popover
goitem: PopoverMenuItemPerform some PopoverMenuItem action

Usage

<wolfltc-navbar [logo_url]="'assets/images/LARGEW.svg'" [brand_title]="'WOLF &amp; ASSOCIATES'" [items]="auth.user.network?.navbar" [show_logout]="true" (onLogoutClick)="auth.logout()" (onContentOutletClick)="loadContentOutlet($event)"></wolfltc-navbar>

Development

This library requires the @wolf_and_associates/popover library.

ng build --project=popover --watch

# In another terminal...
cd projects/navbar
rm -rf package-lock.json node_modules/
npm i ../../dist/popover
cd ../../
ng build --project=navbar --watch

# In another terminal...
cd destination-project/
npm i ../wolfltc-ngx/dist/popover

FAQs

Package last updated on 03 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc