blob: da4b69dd385687fcfa6ceda97daeaeecf4180a1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
import NotiveElement, { customElement } from "../../element";
import h, { fragment } from "../../html";
import "./index.css";
@customElement("ntv-toolbar")
class NotiveToolbarElement extends NotiveElement {
connectedCallback() {
this.append(this.#view());
}
#subdivisionsInputEl: HTMLInputElement = h.input({
title: "Subdivisions",
disabled: true,
});
#view() {
return fragment(
h.section(
h.button({ dataset: { icon: "" } }, "-"),
this.#subdivisionsInputEl,
h.button({ dataset: { icon: "" } }, "+"),
),
h.section(h.button("Play")),
);
}
}
export default NotiveToolbarElement.makeFactory();
|