📄
BoltUI Docs (Preview)
  • Getting Started
    • Introduction
    • Installing Bolt
    • Hello World
  • Understanding Bolt
    • Creating UI
    • Components
    • Properties & Events
    • Styles
    • Custom Components
    • Reactivity
    • Component Lifecycle
    • Routing
  • API Reference
    • index
      • State
      • Component
      • render
      • attribute
      • event
      • onLoad
      • onRemove
      • id
      • Class
      • When
    • components
      • Link
      • AppLink
      • GenericElement
    • events
      • onGenericEvent
    • boltrouter
      • Router
      • AppRouter
      • Url
      • Navigate
      • AppNavigator
  • Future
    • Server Side Rendering
    • Multi-Platform
Powered by GitBook
On this page
  • Definition
  • Input
  • Returns HTMLElement
  1. API Reference
  2. index

onRemove

Definition

function onRemove(component: HTMLElement, callback: function) {
    return HTMLElement
}

Input

  • component : the reference to a valid bolt app, a bolt functional component or a valid bold variable component

  • callback : the function to run when the component is removed from the DOM

Returns HTMLElement

The component will return after registering the callback which will be invoked when the component is removed

PreviousonLoadNextid

Last updated 2 years ago