Skip to content

Commit

Permalink
Update gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
spacegaier authored and piitaya committed Nov 9, 2023
1 parent c82fe22 commit 2e004b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gallery/src/pages/components/ha-control-number-buttons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const buttons: {
min?: number;
max?: number;
step?: number;
unit?: string;
class?: string;
}[] = [
{
Expand All @@ -29,6 +30,11 @@ const buttons: {
label: "Custom",
class: "custom",
},
{
id: "unit",
label: "With unit",
unit: "m",
},
];

@customElement("demo-components-ha-control-number-buttons")
Expand All @@ -50,6 +56,7 @@ export class DemoHarControlNumberButtons extends LitElement {
<pre>Config: ${JSON.stringify(config)}</pre>
<ha-control-number-buttons
.value=${this.value}
.unit=${config.unit}
.min=${config.min}
.max=${config.max}
.step=${config.step}
Expand Down

0 comments on commit 2e004b8

Please sign in to comment.