import { EventEmitter, OnInit } from '@angular/core'; import { ToggleButton } from '../../models/toggle-button.model'; import * as i0 from "@angular/core"; /** * ToggleButtonComponent allows users to select toggle between group of buttons. * The component takes an array of ToggleButton objects as an input, where each object contains id, label and isDisabled property. Default the first button is selected when selectedLabel is not provided. * @class ToggleButtonComponent * @implements {OnInit} */ export declare class ToggleButtonComponent implements OnInit { /** * Label of the selected button. Default is an empty string. * @type {string} */ selectedLabel: string; /** * An array of ToggleButton objects that represent the buttons in the toggle group. * Each ToggleButton object must have properties: id, label, and isDisabled. * @type {ToggleButton[]} */ buttons: ToggleButton[]; /** * Event emitter that emits the selected ToggleButton object when a button is clicked. * @type {EventEmitter} */ toggleSelected: EventEmitter; constants: any; defaultTickIconURL: any; canShowLabel: boolean; selectedId: number; /** * By default, the first button in a group is selected when selectedLabel is not provided. * @return -returns nothing */ ngOnInit(): void; /** * Updates the selectedLabel with the clicked button label and emits the toggleSelected event with the selected ToggleButton object. * @param {ToggleButton} button -Selected ToggleButton object. * @return -returns nothing */ toggleButtonClicked(button: ToggleButton): void; /** * TrackByFunction is called for each item in the collection and return a unique identifier for that item. * @param {number} index -The index of the current item in the collection. * @param {ToggleButton} button -The current button object from the collection being iterated. * @return {number} -returns number */ trackByFn(index: number, button: ToggleButton): number; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }