1.0.2 • Published 4 years ago

3shape-global-nav-demo v1.0.2

Weekly downloads
8
License
ISC
Repository
-
Last release
4 years ago

3shape-global-nav-demo

How to use

Install packages

npm i 3shape-global-nav-demo @webcomponents/webcomponentsjs

Add polyfill import

import '@webcomponents/webcomponentsjs/webcomponents-bundle.js';
// or dynamical
import '@webcomponents/webcomponentsjs/webcomponents-loader.js';

Add component import

import '3shape-global-nav-demo';

Use tag

<g-navigation
    username="{userName}"
    token="{token}"
    editprofileurl="{editProfileUrl}"
    logouturl="{logoutUrl}"
></g-navigation>

Props

PropTypeDefaultDescription
{userName}Stringnullshows user name in account menu
{token}Stringnullthe same as {userName}. component decodes token for you and gets userName from it. if you specify {userName} - {token} will not work
{editProfileUrl}Stringnulllink to user profile page
{logoutUrl}Stringnulllink to logout page

How to develop

npm i
npm run watch
npm run serve

Go to http://localhost:8000

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.2

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago