39 lines
946 B
JavaScript
39 lines
946 B
JavaScript
|
/**
|
||
|
@license
|
||
|
Copyright (c) 2025 trading_peter
|
||
|
This program is available under Apache License Version 2.0
|
||
|
*/
|
||
|
|
||
|
import '@tp/tp-icon/tp-icon.js';
|
||
|
import { LitElement, html, css } from 'lit';
|
||
|
|
||
|
class TpPopupMenuDivider extends LitElement {
|
||
|
static get styles() {
|
||
|
return [
|
||
|
css`
|
||
|
:host {
|
||
|
display: block;
|
||
|
--tp-popup-menu-divider-spacing: 5px;
|
||
|
}
|
||
|
|
||
|
.divider {
|
||
|
margin-top: var(--tp-popup-menu-divider-spacing-top, var(--tp-popup-menu-divider-spacing));
|
||
|
margin-bottom: var(--tp-popup-menu-divider-spacing-bottom, var(--tp-popup-menu-divider-spacing));
|
||
|
height: var(--tp-popup-menu-divider-width, 2px);
|
||
|
background: var(--tp-popup-menu-divider-color, #000);
|
||
|
}
|
||
|
`
|
||
|
];
|
||
|
}
|
||
|
|
||
|
render() {
|
||
|
const { icon } = this;
|
||
|
|
||
|
return html`
|
||
|
<div class="divider"></div>
|
||
|
`;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
window.customElements.define('tp-popup-menu-divider', TpPopupMenuDivider);
|