Skip to content

GenerateDialog

Dialog component that generates individual object data

API

Use getComponent(Dialog ID), you can get the dialog instance

hide

  • (fields: []) => void

    Hide the field of the dialog

display

  • (fields: []) => void

    Display the field of the dialog

disabled

  • (fields, disabled: true | false) => void

    Dynamically set the disabled state of a field in the dialog

open

  • () => void

    Open the dialog

close

  • () => void

    Close the dialog

validate

  • () => promise

    Validate the fields in the dialog

setOptions

  • (fields, options) => void

    Set configuration of the field in the dialog

setData

  • ({id: value}) => Promise

    Set dialog data

getValue

  • (field) => value

    Get the input value for a field in the dialog

getValues

  • () => object

    Get all the input value for a field in the dialog

addClassName

  • (fields: [], className) => void

    dd a style class to a field item in the dialog

removeClassName

  • (fields: [], className) => void

    Remove the field style class