APIs

Show:

Flexberry json area component with.

Methods

_valueDidChange

() private

Observes changes in value. Changes related stringified value.

Properties

_errorMessage

String private

Error message.

Default: ''

_errorMessageCaption

String private

Error message caption.

Default: t('components.flexberry-jsonarea.parse-error.caption')

_isEditing

Boolean private

Flag: indicates whether JSON is editing now.

Default: false

_jsonText

String

Strigified component's value.

Default: ''

_showErrorMessage

Boolean private

Flag: indicates whether to show error message or not.

Default: false

classNames

String[]

Component's wrapping

CSS-classes names.

Any other CSS-classes can be added through component's 'class' property.


                    

Default: ['flexberry-jsonarea', 'ui', 'celled', 'grid']

flexberryClassNames

Object static

Component's CSS-classes names. JSON-object containing string constants with CSS-classes names related to component's .hbs markup elements.

Sub-properties:

  • prefix String

    Component's CSS-class names prefix ('flexberry-jsonarea').

  • wrapper String

    Component's wrapping

    CSS-class name ('flexberry-jsonarea').

  • textArea String

    Component's editable text area CSS-class name ('flexberry-jsonarea-textarea').

  • editButon String

    Component's edit button CSS-class name ('flexberry-jsonarea-edit-button').

placeholder

String

Component's placeholder.

Default: t('components.flexberry-jsonarea.placeholder')

readonly

Boolean

Flag: indicates whether component is in readonly mode or not.

Default: false

value

Object

Component's value.

Default: null