Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Metaphor

Index

Constructors

constructor

  • new Metaphor(baseMeta: RawMetaDescription): Metaphor

Properties

Private meta

meta: FormMetaDescription

Accessors

actions

config

Methods

add

  • add(fieldId: string, type: string, underId?: string): Metaphor
  • Creates a new field. Allows to append it under one of existing fields or to the end of form.

    Parameters

    • fieldId: string
    • type: string
    • Optional underId: string

    Returns Metaphor

clone

  • clone(idSrc: string, idTarget: string, appendToSrc?: boolean): Metaphor
  • Clones an existing field with new id. Allows to append a new field just after the original, or at the and of the fields array.

    Parameters

    • idSrc: string
    • idTarget: string
    • Default value appendToSrc: boolean = true

    Returns Metaphor

disable

  • disable(fieldsToDisable?: string[] | string, enableNotMatched?: boolean): Metaphor
  • Parameters

    • Optional fieldsToDisable: string[] | string
    • Optional enableNotMatched: boolean

    Returns Metaphor

disableAll

enable

  • enable(fieldsToEnable?: string[] | string, disableNotMatched?: boolean): Metaphor
  • Parameters

    • Optional fieldsToEnable: string[] | string
    • Optional disableNotMatched: boolean

    Returns Metaphor

enableAll

get

  • get(path: string): any

hide

  • hide(fieldsToHide?: string[] | string, showNotMatched?: boolean): Metaphor
  • Parameters

    • Optional fieldsToHide: string[] | string
    • Optional showNotMatched: boolean

    Returns Metaphor

hideAll

remove

set

  • set(path: string, value: any): this

show

  • show(fieldsToShow?: string[] | string, hideNotMatched?: boolean): Metaphor
  • Parameters

    • Optional fieldsToShow: string[] | string
    • Optional hideNotMatched: boolean

    Returns Metaphor

showAll

togglePropByFieldIds

  • togglePropByFieldIds(propName: FieldBooleanProps, value: boolean, reverseIfNotMatch?: boolean, ids?: string[] | string): Metaphor

value

  • value(): FormMetaDescription

Generated using TypeDoc