Skip to main content

closeModal

closeModal is used to close the modal rendered by the current plugin.

Usage

Import @giteeteam/plugin-sdk in the frontend code of Custom UI.

import { Button } from 'antd';
import { closeModal } from '@giteeteam/plugin-sdk';

const Demo = () => {
return <Button onClick={() => closeModal()}>Close</Button>
}