Skip to content

resizable

Type Aliases

ResizeHandleParams<Element>

type ResizeHandleParams<Element>: object;

Type Parameters

Element extends HTMLElement = HTMLElement

Type declaration

onresize()?
optional onresize: (params) => void;
Parameters

params

params.event: PointerEvent

params.height: number

params.node: Element

params.side: ResizeSide

params.width: number

Returns

void

onresizeend()?
optional onresizeend: () => void;
Returns

void

sides?
optional sides: object;
sides.all?
optional all: boolean;
sides.bottom?
optional bottom: boolean;
sides.left?
optional left: boolean;
sides.right?
optional right: boolean;
sides.top?
optional top: boolean;
threshold?
optional threshold: number;

Defined in

tmp/commons/src/lib/actions/resizable.ts:52


ResizeSide

type ResizeSide:
| "n"
| "w"
| "s"
| "e"
| "ne"
| "se"
| "nw"
| "sw";

Defined in

tmp/commons/src/lib/actions/resizable.ts:67

Functions

resizable()

function resizable<N>(node, params): ActionReturn<ResizeHandleParams<N>>

Type Parameters

N extends HTMLElement = HTMLElement

Parameters

node: N

params: ResizeHandleParams<N> = {}

Returns

ActionReturn<ResizeHandleParams<N>>

Defined in

tmp/commons/src/lib/actions/resizable.ts:69