web / useAddressForm
Function: useAddressForm() ​
useAddressForm(
type
):object
Parameters ​
• type: AddressType
Returns ​
object
add ​
add:
Ref
<boolean
,boolean
> =false
addressToEdit ​
addressToEdit:
Ref
<Address
,Address
>
addressToSave ​
addressToSave:
Ref
<Address
,Address
>
hasCompany ​
hasCompany:
Ref
<boolean
,boolean
> =false
isLoading ​
isLoading:
Ref
<boolean
,boolean
> =false
open ​
open:
Ref
<boolean
,boolean
> =false
refreshAddressDependencies() ​
refreshAddressDependencies: () =>
Promise
<void
>
Returns ​
Promise
<void
>
save() ​
save: () =>
Promise
<boolean
>
Returns ​
Promise
<boolean
>
setInitialState() ​
setInitialState: () =>
void
Returns ​
void
validationSchema ​
validationSchema:
TypedSchema
<PartialObjectDeep
<object
,object
>,object
>