Good point to make a commit

This commit is contained in:
2025-07-06 19:03:59 +02:00
parent 365143c7db
commit 2895b917fc
16 changed files with 18636 additions and 39 deletions

54
demo/src/the-app.js Normal file
View File

@@ -0,0 +1,54 @@
/**
@license
Copyright (c) 2025 trading_peter
This program is available under Apache License Version 2.0
*/
import '../../tp-rich-text-box.js';
import '../../tp-rtb-bold.js';
import '../../tp-rtb-italic.js';
import '../../tp-rtb-strike.js';
import '../../tp-rtb-underline.js';
import '../../tp-rtb-code.js';
import '../../tp-rtb-clear-format.js';
import { LitElement, html, css } from 'lit';
class TheApp extends LitElement {
static get styles() {
return [
css`
:host {
display: flex;
flex-direction: column;
position: absolute;
inset: 0;
font-family: sans-serif;
}
`
];
}
render() {
return html`
<tp-rich-text-box>
<tp-rtb-bold></tp-rtb-bold>
<tp-rtb-italic></tp-rtb-italic>
<tp-rtb-strike></tp-rtb-strike>
<tp-rtb-underline></tp-rtb-underline>
<tp-rtb-code></tp-rtb-code>
<tp-rtb-clear-format></tp-rtb-clear-format>
</tp-rich-text-box>
`;
}
static get properties() {
return {
};
}
constructor() {
super();
}
}
window.customElements.define('the-app', TheApp);