@orbis-cascade/primo-explore-toggle-institutions

3.1.0 • Public • Published

primo-explore-toggle-institutions

npm version

Features

The list of institutions that also hold an item in details view is collapsed, and a button to toggle expanding the list appears.

Screenshot

screenshot

Install

  1. Make sure you've installed and configured primo-explore-devenv.
  2. Navigate to your template/central package root directory. For example:
    cd primo-explore/custom/MY_VIEW_ID
    
  3. If you do not already have a package.json file in this directory, create one:
    npm init -y
    
  4. Install this package:
    npm install primo-explore-toggle-institutions
    

alternatively, just copy dist/module.js into your package's custom.js file.

Usage

First, add toggleInstitutions as a dependency for your local view module definition.

var app = angular.module('viewCustom', ['toggleInstitutions'])

Then, enable the customization by embedding it in the prmAlmaMoreInstAfter hook:

app.component('prmAlmaMoreInstAfter', {template: '<toggle-institutions />'})

Configuration

The default is to initially collapse the list. If you wish to keep it open initially, you can replace the above with:

app.component('prmAlmaMoreInstAfter', {template: '<toggle-institutions start-hidden=false />'})

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @orbis-cascade/primo-explore-toggle-institutions

      Weekly Downloads

      0

      Version

      3.1.0

      License

      MIT

      Unpacked Size

      19.6 kB

      Total Files

      7

      Last publish

      Collaborators

      • kveldhui
      • eoulib
      • bryan_v
      • budak
      • jeremy2443