Repository URL to install this package:
|
Version:
0.9.5 ▾
|
import { InputStateType } from './typings';
import ReactChain from './ReactChain';
/**
* @todo the input should have the aria-error props and that should be tested in a unit test
*/
declare class InputChain<Props = any, State = any> extends ReactChain<Props, State> {
parent?: any;
constructor(parent: any);
entries(): import("exotic/dist/types/obj/cast/fromCollectionToObj").CollectionAsObj<any>;
/**
* @note - had to change to this for testing & react warnings
* @note - make sure it's always an object
*/
setPluginState(state: InputStateType): Map<string, any>;
/**
* @action
*/
setPluginProps(props: Props): Map<string, any>;
/**
* @action
*/
/**
* may also want to do relational
*
* @sriaarthi
* @example
* - this can be done the same with `isEnabled`
* and would allow only being enabled once
* this.parent.get('add-to-account').isSelected
*/
isValid: boolean;
/**
* === added these since they were commmon ===
*/
/**
* @computed
*/
readonly type: string;
/**
* @action
*/
setValue(value: any): void;
/**
* @computed
*/
getValue(): any;
}
export { InputChain };
export default InputChain;