From 71a0ab544cf976e01326166017f3b44ce5f191ca Mon Sep 17 00:00:00 2001 From: CloudHill Date: Thu, 26 Nov 2020 18:39:53 +0700 Subject: [PATCH] outliner: add full height option --- mods/outliner/mod.js | 11 +++++++++++ mods/outliner/panel.html | 3 +-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/mods/outliner/mod.js b/mods/outliner/mod.js index 5fa2272..5338973 100644 --- a/mods/outliner/mod.js +++ b/mods/outliner/mod.js @@ -7,6 +7,8 @@ 'use strict'; +const store = require("../../pkg/store"); + module.exports = { id: '87e077cc-5402-451c-ac70-27cc4ae65546', tags: ['extension', 'panel'], @@ -14,10 +16,19 @@ module.exports = { desc: 'table of contents.', version: '1.0.0', author: 'CloudHill', + options: [ + { + key: 'fullHeight', + label: 'full height', + type: 'toggle', + value: false + } + ], panel: { html: "panel.html", name: "Outline", icon: "icon.svg", js: "panel.js", + fullHeight: store('87e077cc-5402-451c-ac70-27cc4ae65546').fullHeight } }; diff --git a/mods/outliner/panel.html b/mods/outliner/panel.html index fa82ef7..0485b69 100644 --- a/mods/outliner/panel.html +++ b/mods/outliner/panel.html @@ -1,2 +1 @@ -
-
\ No newline at end of file +
\ No newline at end of file