smart-webcomponents-angular
Version:
[](https://jqwidgets.com/license/)
81 lines (80 loc) • 5.11 kB
TypeScript
import { ButtonGroup } from './../index';
import { Animation, ButtonGroupSelectionMode } from './../index';
import { AfterViewInit, ElementRef, OnInit, OnChanges, OnDestroy, SimpleChanges, EventEmitter } from '@angular/core';
import { BaseElement } from './smart.element';
import * as i0 from "@angular/core";
export { Animation, ButtonGroupSelectionMode, ElementRenderMode } from './../index';
export { Smart } from './smart.element';
export { ButtonGroup } from './../index';
export declare class ButtonGroupComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges {
constructor(ref: ElementRef<ButtonGroup>);
private eventHandlers;
nativeElement: ButtonGroup;
/** @description Creates the component on demand.
* @param properties An optional object of properties, which will be added to the template binded ones.
*/
createComponent(properties?: {}): any;
/** @description Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */
get animation(): Animation | string;
set animation(value: Animation | string);
/** @description Determines the buttons configuration. The dataSource can be an array of strings/numbers or objects where the attributes represent the properties of a List Item. For example label, value. It can also be a callback that returns an Array of items as previously described. */
get dataSource(): any;
set dataSource(value: any);
/** @description Determines the selection mode for the element. */
get selectionMode(): ButtonGroupSelectionMode | string;
set selectionMode(value: ButtonGroupSelectionMode | string);
/** @description Enables or disables the element. */
get disabled(): boolean;
set disabled(value: boolean);
/** @description Sets or gets the license which unlocks the product. */
get license(): string;
set license(value: string);
/** @description Sets or gets the language. Used in conjunction with the property messages. */
get locale(): string;
set locale(value: string);
/** @description Callback used to customize the format of the messages that are returned from the Localization Module. */
get localizeFormatFunction(): any;
set localizeFormatFunction(value: any);
/** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */
get messages(): any;
set messages(value: any);
/** @description Sets or gets the name attribute for the element. Name is used when submiting HTML forms. */
get name(): string;
set name(value: string);
/** @description If the custom element is readonly, it cannot be interacted with. */
get readonly(): boolean;
set readonly(value: boolean);
/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */
get rightToLeft(): boolean;
set rightToLeft(value: boolean);
/** @description Determines the theme. Theme defines the look of the element */
get theme(): string;
set theme(value: string);
/** @description Sets or gets the button group's selected values. Represents an array of strings. */
get selectedValues(): string[];
set selectedValues(value: string[]);
/** @description Sets or gets the button group's selected indexes. Represents an array of numbers */
get selectedIndexes(): number[];
set selectedIndexes(value: number[]);
/** @description If is set to true, the element cannot be focused. */
get unfocusable(): boolean;
set unfocusable(value: boolean);
/** @description Change event is triggered when the selectedValues/selectedIndexes are changed.
* @param event. The custom event. */
onChange: EventEmitter<CustomEvent>;
/** @description Selects/Unselects an item inside the element.
* @param {number | string} value. The index or the value of the item to be selected/unselected.
*/
select(value: number | string): void;
get isRendered(): boolean;
ngOnInit(): void;
ngAfterViewInit(): void;
ngOnDestroy(): void;
ngOnChanges(changes: SimpleChanges): void;
/** @description Add event listeners. */
private listen;
/** @description Remove event listeners. */
private unlisten;
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonGroupComponent, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonGroupComponent, "smart-button-group, [smart-button-group]", ["smart-button-group"], { "animation": "animation"; "dataSource": "dataSource"; "selectionMode": "selectionMode"; "disabled": "disabled"; "license": "license"; "locale": "locale"; "localizeFormatFunction": "localizeFormatFunction"; "messages": "messages"; "name": "name"; "readonly": "readonly"; "rightToLeft": "rightToLeft"; "theme": "theme"; "selectedValues": "selectedValues"; "selectedIndexes": "selectedIndexes"; "unfocusable": "unfocusable"; }, { "onChange": "onChange"; }, never>;
}