Interface: UseTouchHook
May 18, 2020 · View on GitHub
react-uniformed › "useTouch" › UseTouchHook
Interface: UseTouchHook
Hierarchy
- UseTouchHook
Index
Properties
Properties
Readonly isDirty
• isDirty: boolean
Set to true if any field is touched.
Readonly resetTouches
• resetTouches: function
Sets all touch state to false.
Type declaration:
▸ (): void
Readonly setTouch
• setTouch: TouchHandler
Sets the touch state for the specified input to the specified touched value.
Readonly setTouches
• setTouches: function
Replaces the touch state object with the specified touches object map.
Type declaration:
▸ (touches: Touches): void
Parameters:
| Name | Type |
|---|---|
touches | Touches |
Readonly touchField
• touchField: TouchFieldHandler
Sets the specified input's touch state to true.
Readonly touches
• touches: Touches
An object map that contains the touch state of an input. The key is used to indentify the input -- generally this is the input name. The value is a boolean that determines if the node is touched or not.