3.2.6 • Published 9 months ago

@laerdal/navigation v3.2.6

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

MyLaerdal global navigation

This package builds to a single .js file that can be used to add global navigation / service switcher to all Laerdal web applications.

Build Status

Questions? Go find Thomas Kalve or Erik J. Sandal.

How to build and test locally

  1. Clone the repository: git clone git@bitbucket.org:laerdal/portal.git
  2. Switch to the navigation package: cd packages/navigation
  3. Install dependencies: yarn
  4. Build the navigation package: yarn build
  5. Serve the current directory on localhost: serve .
  6. Access index.html on http://localhost:5000

If you are missing serve, run yarn global add serve. If you are missing yarn, visit the yarn install page.

Embed into an application

  1. Serve dist/globalNav.js on an appropriate location on the interwebz (Its temporarily hosted on: https://myportal-test.azurewebsites.net/globalNav.js)
  2. Add the script to your webpage:
<script src="https://example.com/globalNav/globalNav.js" />
  1. Use the methods on window.globalNav to show, hide or toggle the switcher:
<button onClick="window.globalNav.show()">Show</button>
<button onClick="window.globalNav.hide()">Hide</button>
<button onClick="window.globalNav.toggle()">Toggle</button>
  1. Nice!

Integration with SAP CDC

The globalNav script will look for the Gigya Web SDK and bind to the gigya events, ie. onLogin and onLogout.

3.2.6

9 months ago

3.2.5

12 months ago

3.2.4

1 year ago

3.2.0

1 year ago

3.1.1

2 years ago

3.0.4

2 years ago

3.0.6

2 years ago

3.0.0

2 years ago

2.2.13

2 years ago

2.2.11

2 years ago

2.2.10

2 years ago

2.2.9

2 years ago

2.2.8

2 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.2.5

2 years ago

2.2.6

2 years ago

2.1.0

3 years ago

1.2.9

3 years ago

1.2.8

3 years ago

1.2.6

3 years ago

1.2.5-dev.2

3 years ago

1.2.5-dev.3

3 years ago

1.2.5-dev.1

3 years ago

1.2.5-dev

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago