Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "src/runtime/underscore"

Index

Variables

Const rENTITY

rENTITY: RegExp = new RegExp(`[${Object.keys(HTML_ENTITY).join('')}]`, 'g')

Functions

attrFilter

  • attrFilter(name: string, value: string | number | boolean, needEscape: boolean): string

boolAttrFilter

  • boolAttrFilter(name: string, value: string | number | boolean): string

callComputed

  • callComputed(ctx: Context, name: string): any

callFilter

  • callFilter(ctx: Context, name: string, ...args: any[]): any

classFilter

  • classFilter(source: string | string[]): string

createFromPrototype

  • createFromPrototype(proto: object): any

createInstanceFromClass

  • createInstanceFromClass(Clazz: Component<{}> & ComponentDefineOptions): Component<{}>

escapeHTML

  • escapeHTML(source: any): any

getRootCtx

  • getRootCtx<T>(ctx: T): T

handleError

  • handleError(e: Error, instance: Component<{}>, info: string): void

isArray

  • isArray(source: any): source is any[]

isObject

  • isObject(source: any): boolean

iterate

  • iterate(val: any[] | object): IterableIterator<[number, any]> | [string, any][]

mergeChildSlots

  • mergeChildSlots(childSlots: {}): { named: {}; noname: boolean }
  • Parameters

    • childSlots: {}
      • [name: string]: Function

    Returns { named: {}; noname: boolean }

    • named: {}
      • [name: string]: boolean
    • noname: boolean

output

  • output(value: any, needEscape: boolean): any

styleFilter

  • styleFilter(source: object | string): string | object

xclassFilter

  • xclassFilter(inherits: string | string[], own: string): string

xstyleFilter

  • xstyleFilter(inherits: object | string, own: string): string | object

Object literals

Const BASE_PROPS

BASE_PROPS: object

class

class: number = 1

id

id: number = 1

style

style: number = 1

Const HTML_ENTITY

HTML_ENTITY: object

"

": string = "&quot;"

&

&: string = "&amp;"

'

': string = "&#39;"

<

<: string = "&lt;"

>

>: string = "&gt;"

 

: string = "&nbsp;"

©

©: string = "&copy;"

®

®: string = "&reg;"

: string = "&ensp;"

: string = "&emsp;"

: string = "&thinsp;"

: string = "&zwnj;"

: string = "&zwj;"

Const _

_: object

attrFilter

attrFilter: attrFilter

boolAttrFilter

boolAttrFilter: boolAttrFilter

callComputed

callComputed: callComputed

callFilter

callFilter: callFilter

classFilter

classFilter: classFilter

createFromPrototype

createFromPrototype: createFromPrototype

createInstanceFromClass

createInstanceFromClass: createInstanceFromClass

escapeHTML

escapeHTML: escapeHTML

getRootCtx

getRootCtx: getRootCtx

handleError

handleError: handleError

iterate

iterate: iterate

mergeChildSlots

mergeChildSlots: mergeChildSlots

output

output: output

styleFilter

styleFilter: styleFilter

xclassFilter

xclassFilter: xclassFilter

xstyleFilter

xstyleFilter: xstyleFilter

Generated using TypeDoc