params.enable
andrey-zakharov opened this issue · comments
Andrey Zakharov commented
is always true. According to this code:
function install(editor, params) {
params.enable = params.enable || true;
Actually, i need a way to dynamically switch minimap off/on. Is it possible?
Thanks!
Vitaliy Stoliarov commented
v0.3.1
This version also support dynamic params
changing
const mapParams = { enable: false };
editor.use(MinimapPlugin.default, mapParams);
setTimeout(() => mapParams.enable = true, 2000);