Skip to content

Commit

Permalink
add secondary for ha-expansion-panel
Browse files Browse the repository at this point in the history
  • Loading branch information
snootched committed Dec 20, 2024
1 parent 2036e85 commit 72a3dde
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ha-editor-formbuilder-yaml",
"version": "2024.12.1-beta.1",
"version": "2024.12.2-beta.1",
"description": "A reimplementation of ha-editor-formbuilder - supporting YAML configuration of HA Selector controls, conditional expresssions, and more.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export default class EditorForm extends LitElement {
<${headerTag} slot="header">
${section.icon ? `<ha-icon icon="${section.icon}"></ha-icon>` : ''}
${section.label}
${section.secondary ? `<div slot="secondary">${section.secondary}</div>` : ''}
</${headerTag}>
`;

Expand All @@ -102,6 +103,7 @@ export default class EditorForm extends LitElement {
.noCollapse=${section.noCollapse || false}
.outlined=${section.outlined || true}
.leftChevron=${section.leftChevron || false}
.secondary=${section.secondary || ''}
>
${unsafeHTML(headerContent)}
<div>
Expand Down
1 change: 1 addition & 0 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export interface Section {
disabled?: boolean;
required?: boolean;
selector?: any;
secondary?: string;
}

export type AnyControl =
Expand Down

0 comments on commit 72a3dde

Please sign in to comment.