2.9.3 • Published 3 years ago

@manufosela/nav-list v2.9.3

Weekly downloads
21
License
Apache-2.0
Repository
github
Last release
3 years ago

\<nav-list> Published on webcomponents.org Published on npmjs.com License: Apache-2.0

@manufosela/nav-list is a Lit-Element webcomponent to draw a horizontal navigation list

Demo

nav-list codepen demo

<h3>Default nav-list demo</h3>
<nav-list></nav-list>

<h3>With attributes nav-list demo</h3>
<nav-list selected="7">
  <ul>
    <li>5</li>
    <li>6</li>
    <li>7</li>
    <li>8</li>
    <li>9</li>
  </ul>
</nav-list>

<h3>With attributes nav-list demo</h3>
<nav-list selected="5&ndash;10">
  <ul>
    <li>&lt;3</li>
    <li>3&ndash;5</li>
    <li>5&ndash;10</li>
    <li>&gt;10</li>
  </ul>
</nav-list>

Attributes

[title] (String)
[selected] (String)
[fixed] (Boolean) (false by default)
[listen-events] (Boolean) (false by default)

Listen Events

navlist-last
navlist-next

(detail.id is mandatory)

Dispatch Events

navlist-changed (when new value is set)

CSS vars

    --width-list-element: auto;
    --height-list-element: auto;
    --border-radius-element: 0;
    --border-radius-selected-element: 0;
    --border-top-list-element: 2px solid transparent;
    --border-bottom-list-element: 2px solid transparent;
    --border-left-list-element: 2px solid transparent;
    --border-right-list-element: 2px solid transparent;
    --border-top-selected-element: 2px solid #cc3743;
    --border-bottom-selected-element: 2px solid #cc3743;
    --border-left-selected-element: 2px solid #cc3743;
    --border-right-selected-element: 2px solid #cc3743;
    --padding-list-element: 10px 20px;
    --padding-selected-element: 10px 13px;

Install

First run npm install to install your element's dependencies.

Viewing Your Element

$ npm run start

Running Tests

$ npm run test

Build

$ npm run build

Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.

Author

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details

2.9.3

3 years ago

2.9.2

3 years ago

2.9.1

3 years ago

2.9.0

3 years ago

2.8.0

3 years ago

2.7.3

4 years ago

2.7.2

4 years ago

2.7.1

4 years ago

2.6.0

5 years ago

2.5.1

5 years ago

2.4.1

5 years ago

2.4.0

5 years ago

2.3.0

5 years ago

2.1.22

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago