1.40.2 • Published 2 years ago
@uportal/sidebar-nav v1.40.2
Sidebar Nav
Project setup
npm installCompiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run buildRun your tests
npm run testLints and fixes files
npm run lintCustomize configuration
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": "/"
}
]
}
]
}