Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • S

  • P

Hierarchy

Implements

Index

Constructors

constructor

  • new TabBody(props: P, state: S): TabBody

Properties

_jsxChildrenProps

_jsxChildrenProps: any = undefined

_saveJSXChildrenProps

_saveJSXChildrenProps: boolean = false

If true then JSX children props will be save on property _jsxChildrenProps. Component subclasses needing this information (like Virtual component parent) can override it.

Protected blessedElement

blessedElement: Element = undefined as any

All class elements will have a reference to its rendered blessed element

Protected props

props: P

Protected state

state: S

Static VIRTUAL_DATA_OPTION

VIRTUAL_DATA_OPTION: string = "accursed.virtual.component"

Accessors

element

screen

type

  • get type(): string

Methods

filterChildren

filterDescendants

findChildren

findDescendant

findDescendantNamed

  • findDescendantNamed<T>(name: string): T | undefined

getContent

  • getContent(options?: object): string
  • Returns the text content of given node and all its children, in order. By default stripped from ansi escape chars and trimmed, and separated by space, but is configurable through options.

    Parameters

    • Default value options: object = {}
      • Optional childrenLast?: boolean
      • Optional dontStrip?: boolean
      • Optional dontTrim?: boolean

    Returns string

getDescendantNamed

  • getDescendantNamed<T>(n: string): T | undefined

getElementData

  • getElementData<T>(key: string): T

render

  • render(): string

replaceChildren

  • replaceChildren(newChildren: Element[], options?: object): void
  • Hot replace all children on this node with given [[newChildren]] array elements. This is a visual operation, and only should eb performed when the component need to implement a radicals different view dynamically since it couldnt costly.

    Parameters

    • newChildren: Element[]
    • Default value options: object = { mode: 'careful' }
      • mode: "quickly" | "careful" | "dontRender"

    Returns void

saveVirtualData

  • saveVirtualData(e: Element): void

visitDescendants

Static createVirtualComponent

Static createVirtualElement

  • createVirtualElement(c: any, tagName: string): any

Static isVirtualComponent

  • isVirtualComponent(c: any): boolean

Static isVirtualElement

  • isVirtualElement(c: any): boolean