jsreport extension allowing to freeze editing of templates
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
studio
test
.eslintrc
.gitignore
.npmrc
.travis.yml
LICENSE
README.md
index.js
jsreport.config.js
package-lock.json
package.json

README.md

jsreport-freeze

NPM Version

jsreport extension allowing to freeze editing of templates

Installation

npm install jsreport-freeze

Hard freeze in config

You can avoid jsreport templates editing through config file:

{
	"extensions" {
		"freeze": {
			"hardFreeze": true
		}
	}
}

Freeze in studio

Second option is to freeze editing in jsreport studio. This can be found in menu Actions->Freeze Editing. Note this options is available only for the jsreport administrator. The editing can be also afterwards enabled again using menu Actions->Release Freeze.

jsreport-core

You can apply this extension also manually to jsreport-core

var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-freeze')({})