-
Notifications
You must be signed in to change notification settings - Fork 96
Disable Features
cvasseng edited this page Oct 27, 2016
·
6 revisions
Editor features can be turned off by passing various options into the highed.Editor
constructors. highed.SimpleEditor
has a fixed feature set.
Example
highed.Editor(document.body, {
features: 'import export customize'
});
highed.ModalEditor(document.body, {
features: 'import export customize'
}, ...);
The above example will effectively disable the welcome screen and the template selector.
The available features for the editor are:
-
import
- the import UI -
export
- the export UI -
customize
- the chart customizer -
welcome
- the welcome screen -
templates
- the template picker -
done
- the done step which displays a "confirm and close" button
By default, they're all enabled.
The available tabs on the import screen can also be disabled as needed:
highed.Editor(document.body, {
importer: {
options: 'plugins'
}
});
highed.ModalEditor(document.body, {
importer: {
options: 'plugins'
}
}, ...);
Available options for the importer are:
-
csv
: csv import support -
json
: basic json import support -
samples
: basic sample data -
plugins
: plugin support
By default, all options are enabled.
The available tabs on the export screen can also be disabled as needed:
highed.Editor(document.body, {
exporter: {
options: 'plugins csv'
}
});
highed.ModalEditor(document.body, {
exporter: {
options: 'plugins csv'
}
}, ...);
Available options for the exporter are:
-
svg
: svg export support -
json
: basic json export support -
html
: html injection export support -
plugins
: plugin support
By default, all options are enabled.
Overview
Stand-alone Usage
Advanced
- Enable Advanced Customization
- Choosing Which Options to Include
- Adding Custom Templates
- Plugins
- Disabling Editor Features
- Adding Fonts
- Custom Templates
- Localization
- Sticky Chart Options
Integrating
API Reference