mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
37 lines
921 B
TypeScript
37 lines
921 B
TypeScript
import {Et2Portlet} from "../../api/js/etemplate/Et2Portlet/Et2Portlet";
|
|
import shoelace from "../../api/js/etemplate/Styles/shoelace";
|
|
import {css} from "@lion/core";
|
|
import {SelectOption} from "../../api/js/etemplate/Et2Select/FindSelectOptions";
|
|
|
|
/**
|
|
* Home portlet to show a list of entries
|
|
*/
|
|
export class Et2PortletLink extends Et2Portlet
|
|
{
|
|
static get styles()
|
|
{
|
|
return [
|
|
...shoelace,
|
|
...(super.styles || []),
|
|
css`
|
|
`
|
|
]
|
|
}
|
|
|
|
/**
|
|
* 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: "entry", type: "et2-link-entry", label: "Entry"}
|
|
]
|
|
}
|
|
}
|
|
|
|
if(!customElements.get("et2-portlet-link"))
|
|
{
|
|
customElements.define("et2-portlet-link", Et2PortletLink);
|
|
} |