diff --git a/home/js/Et2PortletList.ts b/home/js/Et2PortletList.ts index 78150ba5e1..0ff23a2aa7 100644 --- a/home/js/Et2PortletList.ts +++ b/home/js/Et2PortletList.ts @@ -2,7 +2,7 @@ import {Et2Portlet} from "../../api/js/etemplate/Et2Portlet/Et2Portlet"; import {et2_createWidget} from "../../api/js/etemplate/et2_core_widget"; import {css, html, TemplateResult} from "@lion/core"; import shoelace from "../../api/js/etemplate/Styles/shoelace"; -import {SelectOption} from "../../api/js/etemplate/Et2Select/FindSelectOptions"; +import type {SelectOption} from "../../api/js/etemplate/Et2Select/FindSelectOptions"; import {Et2Dialog} from "../../api/js/etemplate/Et2Dialog/Et2Dialog"; /** diff --git a/home/js/Et2PortletNote.ts b/home/js/Et2PortletNote.ts index c2fefe5565..31e1a3980e 100644 --- a/home/js/Et2PortletNote.ts +++ b/home/js/Et2PortletNote.ts @@ -1,6 +1,7 @@ import shoelace from "../../api/js/etemplate/Styles/shoelace"; import {css, html, TemplateResult, unsafeHTML} from "@lion/core"; import {Et2Portlet} from "../../api/js/etemplate/Et2Portlet/Et2Portlet"; +import type {SelectOption} from "../../api/js/etemplate/Et2Select/FindSelectOptions"; /** * Home portlet to show a note @@ -42,6 +43,19 @@ export class Et2PortletNote extends Et2Portlet }), 'home_' + this.id, window_width + 'x' + window_height, 'home'); } + /** + * Get a list of user-configurable properties + * @returns {[{name : string, type : string, select_options? : [SelectOption]}]} + */ + get portletProperties() : { name : string, type : string, label : string, select_options? : SelectOption[] }[] + { + return [ + ...super.portletProperties, + {name: "title", type: "et2-textbox", label: "Title"}, + {name: "note", type: "htmlarea", label: ""} + ] + } + bodyTemplate() : TemplateResult { return html` diff --git a/home/templates/default/edit.xet b/home/templates/default/edit.xet index 8c8b68c816..f083b81cca 100644 --- a/home/templates/default/edit.xet +++ b/home/templates/default/edit.xet @@ -2,17 +2,18 @@ \ No newline at end of file