📄
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

id

Definition

function id(child: HTMLElement, id: String = "") {
    return HTMLElement
}

Input

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

  • id : takes a string to assign an ID to the element

Returns HTMLElement

The child element will be returned after assigning a valid id

PreviousonRemoveNextClass

Last updated 2 years ago