@jspreadsheet/persistenceflag
v2.0.4
Published
Change persistence flag and add this flag into toolbar.
Downloads
29
Maintainers
Readme
jSpreadsheet Plugin : persistence Flag
Replace Notification persistence and cloud by discret flag on toolbar
This plugin is Free
What is jSpreadsheet ?
jSpreadsheet, a lightweight Vanilla JavaScript plugin, can help you create exceptional web-based interactive tables and spreadsheets. Compatible with most widely-used spreadsheet software, such as Excel or Google Spreadsheet, it offers users an unrivalled Excel-like user experience. It also works well with prominent modern frameworks and flexibly utilizes a large collection of events, extensions and configurations to meet different application requirements. Impress your clients with a better user experience and a great dynamic interactive data management tool.
Documentation
Dependencies
Options of plugin
For translation
you can use jSuites dictionary for translate this plugin
Get started
Header on page
<script src="https://cdn.jsdelivr.net/npm/jspreadsheet/dist/index.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jspreadsheet/dist/jspreadsheet.min.css" type="text/css" />
<script src="https://cdn.jsdelivr.net/npm/jsuites/dist/jsuites.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jsuites/dist/jsuites.min.css" type="text/css" />
<script src="/path/to/persistenceFlag.min.js"></script>
Initialize plugin on jSpreadsheet
jspreadsheet(document.getElementById('spreadsheet'), {
toolbar: true, // or Array/object
...
plugins: [
...
{ name:'persistenceFlag', plugin:jss_persistenceFlag },
...
],
...
});
Example with options and style
Header on page
<script src="https://cdn.jsdelivr.net/npm/jspreadsheet/dist/index.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jspreadsheet/dist/jspreadsheet.min.css" type="text/css" />
<script src="https://cdn.jsdelivr.net/npm/jsuites/dist/jsuites.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jsuites/dist/jsuites.min.css" type="text/css" />
<script src="/path/to/persistenceFlag.min.js"></script>
<style>
.jss-flagpersistence i {
padding: 5px;
font-size: 1.1em;
}
.jss-flagpersistence span {
color: #999999;
font-size: 1em;
}
</style>
Initialize plugin on jSpreadsheet
jspreadsheet(document.getElementById('spreadsheet'), {
toolbar: true, // or Array/object
...
plugins: [
...
{ name:'persistenceFlag', plugin:jss_persistenceFlag, options:{showText:false} },
...
],
...
});
CDN
You can use this CDN link
<script src="https://cdn.jsdelivr.net/gh/GBonnaire/jspreadsheet-plugins-and-editors@latest/plugins/JSSV8/dist/persistenceFlag.min.js"></script>
NPM
npm install @jspreadsheet/persistenceflag
import jss_persistenceFlag from '@jspreadsheet/persistenceflag';
Copyright and license
Copyright GBonnaire.fr and Code released under the MIT License