Interface: NDrawerContext
Properties
closeDrawer
closeDrawer: () => void
Type declaration
(): void
Returns
void
Defined in
dist/src/components/n-drawer/drawer-types.d.ts:65
setDrawerProps
setDrawerProps: (props: Partial<ExtractPropTypes<{ afterVisibleChange: PropType<(visible: boolean) => void> ; autofocus: { default: any ; type: BooleanConstructor } ; bodyStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; class: VueTypeValidableDef<any> ; closable: { default: any ; type: BooleanConstructor } ; closeIcon: VueTypeValidableDef<any> ; contentWrapperStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; destroyOnClose: { default: any ; type: BooleanConstructor } ; drawerStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; extra: VueTypeValidableDef<any> ; footer: VueTypeValidableDef<any> ; footerStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; forceRender: { default: any ; type: BooleanConstructor } ; getContainer: VueTypeValidableDef<any> ; handle: VueTypeValidableDef<any> ; headerStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; height: VueTypeDef<string | number> ; keyboard: { default: any ; type: BooleanConstructor } ; level: VueTypeValidableDef<any> ; levelMove: { type: PropType<ILevelMove | (e: { open: boolean ; target: HTMLElement }) => ILevelMove> } ; mask: { default: any ; type: BooleanConstructor } ; maskClosable: { default: any ; type: BooleanConstructor } ; maskStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; onAfterVisibleChange: PropType<(visible: boolean) => void> ; onClose: PropType<KeyboardEventHandler | MouseEventHandler> ; onUpdate:visible: PropType<(visible: boolean) => void> ; placement: VueTypeDef<"top" | "left" | "right" | "bottom"> ; prefixCls: StringConstructor ; push: VueTypeDef<boolean | PushState> ; size: { type: PropType<"default" | "large"> } ; style: { default: CSSProperties ; type: PropType<CSSProperties> } ; title: VueTypeValidableDef<any> ; visible: { default: any ; type: BooleanConstructor } ; width: VueTypeDef<string | number> ; wrapClassName: StringConstructor ; wrapStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; zIndex: NumberConstructor }>> & Partial<NDrawerProps>) => void
Type declaration
(props): void
Parameters
| Name | Type |
|---|---|
props | Partial<ExtractPropTypes<{ afterVisibleChange: PropType<(visible: boolean) => void> ; autofocus: { default: any ; type: BooleanConstructor } ; bodyStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; class: VueTypeValidableDef<any> ; closable: { default: any ; type: BooleanConstructor } ; closeIcon: VueTypeValidableDef<any> ; contentWrapperStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; destroyOnClose: { default: any ; type: BooleanConstructor } ; drawerStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; extra: VueTypeValidableDef<any> ; footer: VueTypeValidableDef<any> ; footerStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; forceRender: { default: any ; type: BooleanConstructor } ; getContainer: VueTypeValidableDef<any> ; handle: VueTypeValidableDef<any> ; headerStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; height: VueTypeDef<string | number> ; keyboard: { default: any ; type: BooleanConstructor } ; level: VueTypeValidableDef<any> ; levelMove: { type: PropType<ILevelMove | (e: { open: boolean ; target: HTMLElement }) => ILevelMove> } ; mask: { default: any ; type: BooleanConstructor } ; maskClosable: { default: any ; type: BooleanConstructor } ; maskStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; onAfterVisibleChange: PropType<(visible: boolean) => void> ; onClose: PropType<KeyboardEventHandler | MouseEventHandler> ; onUpdate:visible: PropType<(visible: boolean) => void> ; placement: VueTypeDef<"top" | "left" | "right" | "bottom"> ; prefixCls: StringConstructor ; push: VueTypeDef<boolean | PushState> ; size: { type: PropType<"default" | "large"> } ; style: { default: CSSProperties ; type: PropType<CSSProperties> } ; title: VueTypeValidableDef<any> ; visible: { default: any ; type: BooleanConstructor } ; width: VueTypeDef<string | number> ; wrapClassName: StringConstructor ; wrapStyle: { default: CSSProperties ; type: PropType<CSSProperties> } ; zIndex: NumberConstructor }>> & Partial<NDrawerProps> |
Returns
void
Defined in
dist/src/components/n-drawer/drawer-types.d.ts:66