Skip to content

@jimka/typescript-ui / core / fadeHideAndDetach

Function: fadeHideAndDetach()

ts
function fadeHideAndDetach(component: Component, options?: FadeOptions): void

Defined in: src/typescript/lib/core/AnimatedDropdown.ts:346

Plays the standard dropdown-style exit fade on the given component's element, then hides and detaches it from the DOM when the transition completes.

A fresh fadeShow during the fade cancels the deferred detach so the panel stays mounted.

Parameters

component

Component

The component to fade out and detach.

options?

FadeOptions

Optional duration / translate / animated overrides; onComplete fires after detach.

Returns

void