editron Index Editor
Adds an editable navigation for a given datapoint (json-pointer).
npm i editron-index-editor --save
Setup
Add the bundled editor as a plugin
Use bundled versions of this editor
Add the editor after the core-modules and it will register automatically (paths depend on your build-setup)
<!-- plugin editor -->
And create the index-editor
const controller = mySchema myData;// create a main view for your dataconst mainEditor = controller; // create a new editor using the index-editor (enabled by option)const index = controller; // the index-editor will notify the location-service for any changesconst LocationServive = ;LocationService;
Webpack build
bundle the editor into your editron-application
Javascript
To use this editor within a webpack build, require the editor and add it to the editors list
const editronIndexEditor = ;const editors = editronIndexEditor ...otherEditors;const controller = schema data editors ; // and follow the example above
Styles
Optionally import the custom script-editor styles via sass
;
or simply add the bundled css-file (path is depending on your build-setup)