import IdsButton from '../ids-button/ids-button'; import type { IdsButtonAppearance } from '../ids-button/ids-button-common'; import '../ids-icon/ids-icon'; /** * IDS Toggle Button Component * @type {IdsToggleButton} * @inherits IdsButton */ export default class IdsToggleButton extends IdsButton { constructor(); /** * @returns {Array} containing configurable properties on this component */ static get attributes(): Array; /** * Toggle-Button-level `connectedCallback` implementation (adds an icon refresh) * @returns {void} */ connectedCallback(): void; /** * Toggle-Button-level `disconnectedCallback` implementation * @returns {void} */ disconnectedCallback(): void; /** * Set the pressed (on/off) state * @param {boolean | string} val if true, the "toggle" is activated */ set pressed(val: boolean | string); get pressed(): boolean; /** * Get the `no-auto-toggle` attribute * @returns {boolean} `true` if auto-toggle is disabled */ get noAutoToggle(): boolean; /** * Set the `no-auto-toggle` attribute * @param {boolean} val `true` to disable auto-toggle on click */ set noAutoToggle(val: boolean); /** * Override setting the "appearance" on Toggle Buttons, since they can only be the default style * @param {IdsButtonAppearance | null} val a valid appearance attribute */ set appearance(val: IdsButtonAppearance | null); /** * @returns {IdsButtonAppearance} the currently set appearance attribute */ get appearance(): IdsButtonAppearance; /** * Defines the `unpressed/off` toggle state icon. * @param {string | boolean} val corresponds to an IdsIcon's `icon` property * @returns {void} */ set iconOff(val: string | boolean); /** * @returns {string} the current icon representing the `unpressed/off` state */ get iconOff(): string; /** * Defines the `pressed/on` toggle state icon. * @param {string | boolean} val corresponds to an IdsIcon's `icon` property * @returns {void} */ set iconOn(val: string | boolean); /** * @returns {string} the current icon representing the `pressed/on` state */ get iconOn(): string; /** * Defines if the icon is disabled * @param {boolean} val `true` to disable the icon */ set disableIcon(val: boolean); /** * Get the `disable-icon` attribute * @returns {boolean} `true` if the icon is disabled */ get disableIcon(): boolean; /** * Defines the `unpressed/off` toggle state text. * @param {string} val `unpressed/off` description text * @returns {void} */ set textOff(val: string); /** * @returns {string} the current icon representing the `unpressed/off` state */ get textOff(): string; /** * Defines the `pressed/on` toggle state icon. * @param {string} val corresponds to an IdsIcon's `icon` property * @returns {void} */ set textOn(val: string); /** * @returns {string} the current icon representing the `pressed/on` state */ get textOn(): string; /** * Sets (or creates) a slotted icon that represents the pressed state * @private * @returns {void} */ refreshIcon(): void; /** * Sets (or creates) a slotted span that contains text * @private * @returns {void} */ refreshText(): void; /** * Toggles the "pressed" state of the button * @returns {void} */ toggle(): void; }