web / useAddPageModal
Function: useAddPageModal() ​
useAddPageModal():
object
Defined in: apps/web/composables/useAddPage/useAddPage.ts:7
Returns ​
object
_isReady ​
_isReady:
Ref
<boolean
,boolean
>
categoriesWithFallback ​
categoriesWithFallback:
ComputedRef
<CategoryEntry
[]>
closeModal() ​
closeModal: () =>
void
Returns ​
void
errors ​
errors:
ComputedRef
<Partial
<Record
<"pageName"
,undefined
|string
>>>
getLabel() ​
getLabel: (
option
) =>string
Parameters ​
option ​
CategoryEntry
Returns ​
string
getLevel() ​
getLevel: (
option
) =>number
Parameters ​
option ​
CategoryEntry
Returns ​
number
handleSearch() ​
handleSearch: (
query
) =>void
Parameters ​
query ​
string
Returns ​
void
isValidParentPage() ​
isValidParentPage: () =>
boolean
Returns ​
boolean
onSubmit() ​
onSubmit: (
e
?) =>Promise
<undefined
|Promise
<void
>>
Parameters ​
e? ​
Event
Returns ​
Promise
<undefined
| Promise
<void
>>
pageModalOpen ​
pageModalOpen:
Readonly
<Ref
<boolean
,boolean
>>
pageName ​
pageName:
Ref
<undefined
|string
,undefined
|string
>
pageNameAttributes ​
pageNameAttributes:
Ref
<BaseFieldProps
&GenericObject
,BaseFieldProps
&GenericObject
>
pageType ​
pageType:
Ref
<{label
:string
;value
:string
; }, {label
:string
;value
:string
; } | {label
:string
;value
:string
; }>
pageTypes ​
pageTypes:
Ref
<object
[],object
[] |object
[]>
parentPage ​
parentPage:
Ref
<{},CategoryEntry
| {}>