2024-05-23 12:41:11 +00:00
|
|
|
import { html, LitElement } from 'lit'
|
2024-05-13 14:40:36 +00:00
|
|
|
import { customElement, property } from 'lit/decorators.js'
|
2024-05-23 12:41:11 +00:00
|
|
|
import './help-button'
|
2024-05-23 00:26:38 +00:00
|
|
|
import { getGlobalStyleSheets } from '../../global-styles'
|
2024-05-13 14:40:36 +00:00
|
|
|
|
|
|
|
@customElement('plugin-configuration-row')
|
2024-05-23 12:41:11 +00:00
|
|
|
export class PluginConfigurationRowElement extends LitElement {
|
2024-05-13 14:40:36 +00:00
|
|
|
|
|
|
|
@property({ attribute: false })
|
|
|
|
public title: string = `title`
|
|
|
|
|
|
|
|
@property({ attribute: false })
|
|
|
|
public description: string = `Here's a description`
|
|
|
|
|
|
|
|
@property({ attribute: false })
|
2024-05-23 00:26:38 +00:00
|
|
|
public helpPage: string = 'documentation'
|
2024-05-13 14:40:36 +00:00
|
|
|
|
2024-05-23 00:26:38 +00:00
|
|
|
static styles = [
|
|
|
|
...getGlobalStyleSheets()
|
|
|
|
];
|
2024-05-13 14:40:36 +00:00
|
|
|
|
|
|
|
render() {
|
|
|
|
return html`
|
|
|
|
<div class="row mt-5">
|
2024-05-23 00:26:38 +00:00
|
|
|
<div class="col-12 col-lg-4 col-xl-3">
|
|
|
|
<h2>${this.title}</h2>
|
|
|
|
<p>${this.description}</p>
|
|
|
|
<help-button .page=${this.helpPage}>
|
|
|
|
</help-button>
|
2024-05-13 14:40:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-8 col-xl-9">
|
|
|
|
<slot><p>Nothing in this row.</p></slot>
|
|
|
|
</div>
|
|
|
|
</div>`
|
|
|
|
}
|
|
|
|
}
|