Create Custom <input>

Create <input>'s for new custom input modal show.

NewInput(type: string, id: string, label: string, placeholder: string, value: string)

Create new custom Dialogio Input for Custom Input Modal.

  • *type: Input type data. Valid types is: Text, Number, Tel, Email and Password.

  • *id: Input custom id for get value in input modal. Custom input IDs must be at least 4 characters long and contain only letters, numbers, underscores, or hyphens after trimming and sanitization.

  • label: Label text for input.

  • placeholder: Placeholder text for input content.

  • value: Input value data.

Returns { id: CREATED_CUSTOM_ID, view: INPUT_HTML_FOR_VIEW }

Last updated