Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/tui/mod.ts>Component#destroy

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
method Component.prototype.destroy
Re-export
import { Component } from "https://deno.land/x/tui@2.0.0/mod.ts";

Destroys component:

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