📄
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
  1. API Reference
  2. index

onLoad

Definition

function onLoad(callback: function, ...dependency: State)

Input

  • callback : takes a callback function which can be asynchronous which is ran at the start of the creation of a component and then will re-run if any state is binded

  • dependency : list of all the states to listen to, and to re-run the callback when the states are updated

PreviouseventNextonRemove

Last updated 2 years ago