Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/tui/src/component.ts>Component#destroy

🦕 Deno module for creating Terminal User Interfaces
Latest
method Component.prototype.destroy
import { Component } from "https://deno.land/x/tui@2.1.11/src/component.ts";

Destroys component:

  • Disables all listeners
  • Removes all drawnObjects
  • calls destroy() on its children
  • Removes itself from subComponentOf.subComponents
  • Removes itself from parent.children