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

Last updated