Open philmale opened 8 months ago
Allow changing the send button icon in the config:
let label = this.config.label ?? "Notification Text"; let icon = this.config.icon ?? "mdi:send"; this.content.innerHTML += ` <div style="display: flex"> <ha-textfield id="notification_text" style="flex-grow: 1" label="${label}"></ha-textfield> <ha-icon-button id="send_button" slot="suffix"> <ha-icon icon="${icon}"> </ha-icon-button> </div> `;
type: custom:notify-card target: script.send_mqtt_announcement label: Announcement text icon: mdi:bullhorn card_title: false card_mod: style: | notify-card > ha-card { padding: 16px 0px 0px 16px; }
Allow changing the send button icon in the config: