Skip to content
This repository has been archived by the owner on Dec 5, 2018. It is now read-only.

Latest commit

 

History

History
20 lines (14 loc) · 1.03 KB

README.md

File metadata and controls

20 lines (14 loc) · 1.03 KB

document-preview-plugin

Grails plugin to assist with previewing stored documents. (Extracted from BioCollect into a plugin.)

Usage

See grails-app/views/resource/_list.gsp for a template than can be used to manage the creation and display of Documents

The required parameters are: updateController, updateAction: The controller and action to process create and update request deleteController, deleteAction: The controller and action that will process delete requests parentId: The value of property parentId for all new created documents documents: A JSON array with all the documents to display. documentResourceAdmin: a boolean property that enables/disables edit controls

If a different initialisation is required (such as via an angular controller), you can still use _list.gsp as a reference, you will need to call ALA.DocView.initDocView from your code.

Status

Build Status