Home: Better edit for note

This commit is contained in:
nathan
2023-03-14 09:25:10 -06:00
parent 8b54fbbc62
commit 90c3bb6089
3 changed files with 27 additions and 12 deletions

View File

@ -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`