UNPKG

paella-core

Version:
24 lines (18 loc) 666 B
import PopUpButtonPlugin from 'paella-core/js/core/PopUpButtonPlugin'; import { createElementWithHtmlText } from 'paella-core/js/core/dom'; import PaellaCorePlugins from './PaellaCorePlugins'; import screenIcon from 'paella-core/icons/screen.svg'; export default class TestPopUpButtonPlugin extends PopUpButtonPlugin { getPluginModuleInstance() { return PaellaCorePlugins.Get(); } get popUpType() { return "timeline"; } async getContent() { const content = createElementWithHtmlText('<p>Pop Up Button Plugin Content 1</p>'); return content; } async load() { this.icon = screenIcon; this.title = "1"; } }