Repository URL to install this package:
|
Version:
3.7.2 ▾
|
import { Value } from './typings';
export declare class CommonState {
/**
* @note: these seem attribute-like
*/
/** @description for inputs, this is `isFocused` */
isActive: boolean;
/** @description for inputs, this is value for checkbox? or something else... */
isSelected: boolean;
/** @description for inputs, this is what was @name labelText */
label: string;
/** @description for inputs, the VALUE OF THE INPUT */
value: Value;
/** @description for disabling inputs from being changed */
isDisabled: boolean;
/** @description for hiding / showing inputs so we can adjust them dynamically */
isVisible: boolean;
setValue(value: Value): void;
setLabel(label: string): void;
setIsDisabled(isDisabled: boolean): void;
setIsVisible(isVisible: boolean): void;
setIsSelected(isSelected: boolean): void;
/** @description for inputs, this is `isFocused` */
setIsActive(isActive: boolean): void;
}