|
| 1 | +import React from "react"; |
| 2 | +import { ButtonGroupProperties } from "./../index"; |
| 3 | +import { Animation, ClickMode } from './../index'; |
| 4 | +export { ButtonGroupProperties } from "./../index"; |
| 5 | +export { Animation, ClickMode } from './../index'; |
| 6 | +export declare const Smart: any; |
| 7 | +export interface ButtonGroupProps extends ButtonGroupProperties { |
| 8 | + className?: string; |
| 9 | + style?: React.CSSProperties; |
| 10 | + onChange?: ((event?: Event) => void) | undefined; |
| 11 | +} |
| 12 | +/** |
| 13 | + ButtonGroup creates a set of buttons that can work as normal buttons, radio buttons or checkboxes. |
| 14 | +*/ |
| 15 | +export declare class ButtonGroup extends React.Component<React.HTMLProps<Element> & ButtonGroupProps, any> { |
| 16 | + private _id; |
| 17 | + private nativeElement; |
| 18 | + private componentRef; |
| 19 | + get id(): string; |
| 20 | + /** Sets or gets the animation mode. Animation is disabled when the property is set to 'none' |
| 21 | + * Property type: Animation |
| 22 | + */ |
| 23 | + get animation(): Animation; |
| 24 | + set animation(value: Animation); |
| 25 | + /** 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. |
| 26 | + * Property type: any |
| 27 | + */ |
| 28 | + get dataSource(): any; |
| 29 | + set dataSource(value: any); |
| 30 | + /** Determines the selection mode for the element. |
| 31 | + * Property type: ClickMode |
| 32 | + */ |
| 33 | + get selectionMode(): ClickMode; |
| 34 | + set selectionMode(value: ClickMode); |
| 35 | + /** Enables or disables the element. |
| 36 | + * Property type: boolean |
| 37 | + */ |
| 38 | + get disabled(): boolean; |
| 39 | + set disabled(value: boolean); |
| 40 | + /** Sets or gets the language. Used in conjunction with the property messages. |
| 41 | + * Property type: string |
| 42 | + */ |
| 43 | + get locale(): string; |
| 44 | + set locale(value: string); |
| 45 | + /** Callback used to customize the format of the messages that are returned from the Localization Module. |
| 46 | + * Property type: any |
| 47 | + */ |
| 48 | + get localizeFormatFunction(): any; |
| 49 | + set localizeFormatFunction(value: any); |
| 50 | + /** Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. |
| 51 | + * Property type: any |
| 52 | + */ |
| 53 | + get messages(): any; |
| 54 | + set messages(value: any); |
| 55 | + /** Sets or gets the name attribute for the element. Name is used when submiting HTML forms. |
| 56 | + * Property type: string |
| 57 | + */ |
| 58 | + get name(): string; |
| 59 | + set name(value: string); |
| 60 | + /** If the custom element is readonly, it cannot be interacted with. |
| 61 | + * Property type: boolean |
| 62 | + */ |
| 63 | + get readonly(): boolean; |
| 64 | + set readonly(value: boolean); |
| 65 | + /** Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. |
| 66 | + * Property type: boolean |
| 67 | + */ |
| 68 | + get rightToLeft(): boolean; |
| 69 | + set rightToLeft(value: boolean); |
| 70 | + /** Determines the theme. Theme defines the look of the element |
| 71 | + * Property type: string |
| 72 | + */ |
| 73 | + get theme(): string; |
| 74 | + set theme(value: string); |
| 75 | + /** Sets or gets the button group's selected values. Represents an array of strings. |
| 76 | + * Property type: string[] |
| 77 | + */ |
| 78 | + get selectedValues(): string[]; |
| 79 | + set selectedValues(value: string[]); |
| 80 | + /** Sets or gets the button group's selected indexes. Represents an array of numbers |
| 81 | + * Property type: number[] |
| 82 | + */ |
| 83 | + get selectedIndexes(): number[]; |
| 84 | + set selectedIndexes(value: number[]); |
| 85 | + /** If is set to true, the element cannot be focused. |
| 86 | + * Property type: boolean |
| 87 | + */ |
| 88 | + get unfocusable(): boolean; |
| 89 | + set unfocusable(value: boolean); |
| 90 | + get properties(): string[]; |
| 91 | + /** Change event is triggered when the selectedValues/selectedIndexes are changed. |
| 92 | + * @param event. The custom event. */ |
| 93 | + onChange?: ((event?: Event) => void) | undefined; |
| 94 | + /** This event occurs, when the React component is created. |
| 95 | + * @param event. The custom event. */ |
| 96 | + onCreate?: ((event?: Event) => void) | undefined; |
| 97 | + /** This event occurs, when the React component is completely rendered. |
| 98 | + * @param event. The custom event. */ |
| 99 | + onReady?: ((event?: Event) => void) | undefined; |
| 100 | + get events(): string[]; |
| 101 | + /** Selects/Unselects an item inside the element. |
| 102 | + * @param {number | string} value. The index or the value of the item to be selected/unselected. |
| 103 | + */ |
| 104 | + select(value: number | string): void; |
| 105 | + constructor(props: any); |
| 106 | + componentDidRender(initialize: boolean): void; |
| 107 | + componentDidMount(): void; |
| 108 | + componentDidUpdate(): void; |
| 109 | + componentWillUnmount(): void; |
| 110 | + render(): React.ReactElement<{ |
| 111 | + ref: any; |
| 112 | + }, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>; |
| 113 | +} |
| 114 | +export default ButtonGroup; |
0 commit comments