Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

uqlibrary/uqlibrary-toolbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uqlibrary-toolbar

Codeship Status for uqlibrary/uqlibrary-toolbar Dependency Status Dev Dependency Status

uqlibrary-toolbar displays a toolbar which takes an initialisation state, most fundamentally a title, but also including search and more actions display

Full documentation and demo can be found in GitHub Pages.

Events

Event type Event data Description
uqlibrary-toolbar-menu-clicked na Hamburger menu on left is tapped
uqlibrary-toolbar-link-clicked item from appLinks Link in more menu on right clicked
uqlibrary-toolbar-search-submitted Submitted value The user has either pressed enter, clicked the search icon, or selected from the autocomplete

Getting Started

npm install -g bower web-component-tester polymer-cli
npm install
bower install

Developing

  • Please adhere to the Polymer code style guide provided at Style Guide.
  • Colors and common styles are imported (bower install) from uqlibrary-styles
  • GitHub pages should be updated after every commit to polymer1.0 branch by running bin/generate-gh-pages.sh
  • A preview of the component can be viewed locally by running npm start. Use the second URL from the command output.

Testing

Tests are run using the Web Component Tester. Either navigate to /tests/index.html in a browser or using the command line:

npm test