Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WebCellComponent<P, S>

Type parameters

Hierarchy

Index

Properties

defaultSlot

defaultSlot: VNodeChildElement[]

props

props: P

root

root: Element | DocumentFragment

state

state: S

Methods

emit

  • emit(event: string, detail?: any, options?: EventInit): boolean
  • Parameters

    • event: string
    • Optional detail: any
    • Optional options: EventInit

    Returns boolean

render

setProps

  • setProps(data: Partial<P>): Promise<any>

setState

  • setState(data: Partial<S>): Promise<void>

Optional shouldUpdate

  • shouldUpdate(oldState: S, newState: S): boolean
  • Called before state is updated

    Parameters

    • oldState: S
    • newState: S

    Returns boolean

toString

  • toString(): string

update

  • update(): void

Optional updatedCallback

  • updatedCallback(): void

Generated using TypeDoc