1 | import { Component } from 'react';
|
2 | import { CheckboxChangeEvent } from '../checkbox';
|
3 | import { SelectionCheckboxAllProps, SelectionCheckboxAllState, SelectionItem } from './interface';
|
4 | export default class SelectionCheckboxAll<T> extends Component<SelectionCheckboxAllProps<T>, SelectionCheckboxAllState> {
|
5 | unsubscribe: () => void;
|
6 | defaultSelections: SelectionItem[];
|
7 | constructor(props: SelectionCheckboxAllProps<T>);
|
8 | componentDidMount(): void;
|
9 | componentWillReceiveProps(nextProps: SelectionCheckboxAllProps<T>): void;
|
10 | componentWillUnmount(): void;
|
11 | subscribe(): void;
|
12 | checkSelection(data: T[], type: string, byDefaultChecked: boolean): boolean;
|
13 | setCheckState(props: SelectionCheckboxAllProps<T>): void;
|
14 | getCheckState(props: SelectionCheckboxAllProps<T>): any;
|
15 | getIndeterminateState(props: SelectionCheckboxAllProps<T>): any;
|
16 | handleSelectAllChagne: (e: CheckboxChangeEvent) => void;
|
17 | renderMenus(selections: SelectionItem[]): JSX.Element[];
|
18 | render(): JSX.Element;
|
19 | }
|