@uportal/sidebar-nav

Sidebar navigation of present links for uPortal

Usage no npm install needed!

<script type="module">
  import uportalSidebarNav from 'https://cdn.skypack.dev/@uportal/sidebar-nav';
</script>

README

Sidebar Nav

NPM Version Maven Central Build Status

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

Usage as Vue component

The component source can also be imported and used directly within other Vue projects.

import contentCarousel from '@uportal/sidebar-nav/src/components/SidebarNav';

This package requires an attribute link-data-url This attribute should reference a JSON file with the following structure:

{
  "topics": [
    {
      "title": "Test Item",
      "links": [
        {
          "title": "Link Title",
          "url": "/"
        },
        {
          "title": "Link Title",
          "url": "/"
        }
      ]
    },
    {
      "title": "Test Item",
      "links": [
        {
          "title": "Link Title",
          "url": "/"
        }
      ]
    }
  ]
}