am-editor-002/docs/api/editor-card-resize.md

1.1 KiB

Resize

A tool that can adjust the size of the card content area

Type: ResizeInterface

Constructor

new (editor: EditorInterface, card: CardInterface): ResizeInterface

Method

create

Create and bind events

/**
 * Create and bind events
 * @param options optional
 */
create(options: ResizeCreateOptions): void;

render

Rendering tools

/**
 * Render
 * The target node rendered by @param container, the default is the root node of the current card
 * @param minHeight minimum height, default 80px
 */
render(container?: NodeInterface, minHeight?: number): void;

dragStart

Pull start

/**
 * Pull to start
 * @param event event
 */
dragStart(event: MouseEvent): void;

dragMove

Pulling moving

/**
 * Pulling and moving
 * @param event event
 */
dragMove(event: MouseEvent): void;

dragEnd

Pull over

/**
 * Pull end
 */
dragEnd(event: MouseEvent): void;

show

Show off

/**
 * Show
 */
show(): void;

hide

hide

/**
 * Hide
 */
hide(): void;

destroy

Logout

/**
 * Logout
 */
destroy(): void;