Home Reference Source
import ModalEditComponent from 'formiojs/src/contrib/modaledit/ModalEdit.js'
public class | source

ModalEditComponent

Extends:

src/components/textarea/TextArea.js~TextAreaComponent → ModalEditComponent

Static Member Summary

Static Public Members
public static get

builderInfo: {"title": string, "group": string, "icon": string, "weight": number, "schema": *}

Static Method Summary

Static Public Methods
public static

schema(extend: ...*): *

Member Summary

Public Members
public get
public
public get

layoutProps: {"fixed": *, "fluid": *}

Method Summary

Public Methods
public

attach(element: *): *

public

attachElement(element: *)

public

createModal(element: *): *

public

getElementRect(elt: *): *

public

getModalLayout(rect: *): {"left": *, "minHeight": *, "top": *, "width": *}

public

getModalSize(currentWidth: *, currentHeight: *): {"width": *, "height": *}

public

getModalStyle(args: *, overrides: {}): {...defaultStyles: Object, ...overrides: Object, ...layout: Object}

public

renderElement(content: string): *

public
public

updateContentView(content: string): *

public

updateOnChange(flags: *, changed: boolean)

Static Public Members

public static get builderInfo: {"title": string, "group": string, "icon": string, "weight": number, "schema": *} source

Static Public Methods

public static schema(extend: ...*): * source

Params:

NameTypeAttributeDescription
extend ...*

Return:

*

Public Members

public get defaultModalSize: number[] source

public innerHTML: * source

public get layoutProps: {"fixed": *, "fluid": *} source

Public Methods

public attach(element: *): * source

Params:

NameTypeAttributeDescription
element *

Return:

*

public attachElement(element: *) source

Params:

NameTypeAttributeDescription
element *

public createModal(element: *): * source

Params:

NameTypeAttributeDescription
element *

Return:

*

public getElementRect(elt: *): * source

Params:

NameTypeAttributeDescription
elt *

Return:

*

public getModalLayout(rect: *): {"left": *, "minHeight": *, "top": *, "width": *} source

Params:

NameTypeAttributeDescription
rect *

Return:

{"left": *, "minHeight": *, "top": *, "width": *}

public getModalSize(currentWidth: *, currentHeight: *): {"width": *, "height": *} source

Params:

NameTypeAttributeDescription
currentWidth *
currentHeight *

Return:

{"width": *, "height": *}

public getModalStyle(args: *, overrides: {}): {...defaultStyles: Object, ...overrides: Object, ...layout: Object} source

Params:

NameTypeAttributeDescription
args *
overrides {}
  • optional
  • default: {}

Return:

{...defaultStyles: Object, ...overrides: Object, ...layout: Object}

public renderElement(content: string): * source

Params:

NameTypeAttributeDescription
content string
  • optional
  • default:

Return:

*

public showModal() source

public updateContentView(content: string): * source

Params:

NameTypeAttributeDescription
content string
  • optional
  • default:

Return:

*

public updateOnChange(flags: *, changed: boolean) source

Params:

NameTypeAttributeDescription
flags *
changed boolean
  • optional
  • default: false