https://github.com/jsreport/jsreport-freeze
jsreport extension allowing to freeze editing of templates
https://github.com/jsreport/jsreport-freeze
Last synced: about 1 year ago
JSON representation
jsreport extension allowing to freeze editing of templates
- Host: GitHub
- URL: https://github.com/jsreport/jsreport-freeze
- Owner: jsreport
- License: mit
- Created: 2015-11-25T14:45:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-08-20T16:58:52.000Z (almost 5 years ago)
- Last Synced: 2025-04-11T03:39:40.063Z (about 1 year ago)
- Language: JavaScript
- Size: 215 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**⚠️ This repository has been moved to the monorepo [jsreport/jsreport](https://github.com/jsreport/jsreport)**
--
# jsreport-freeze
[](https://npmjs.com/package/jsreport-freeze)
**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:
```js
{
"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](https://github.com/jsreport/jsreport-core)
```js
var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-freeze')({})