xd-dialog-helper

xd-dialog-helper

  • Docs
  • WYSIWYG-Editor
  • GitHub

›Types

Getting started

  • Installation
  • The first dialog
  • WYSIWYG-Editor
  • Dialog validation
  • Options for showDialog()
  • Custom types

Examples

  • Hello World Dialog
  • Replace text dialog
  • Lorem Ipsum dialog

Reference

  • showDialog()
  • ActionList
  • ContentElementDeclaration
  • ContentElement
  • ContentElementType
  • Types

    • Checkbox
    • Header
    • Horizontal Rule
    • Select / Dropdown
    • Slider
    • Text
    • Text area
    • Text input

Text input

Signature

readonly DialogHelper.types.TEXT_Input: ContentElementType

Type

ContentElementType exported readonly member of the require('xd-dialog-helper').types namespace

Description

A (single-line) text input element

Properties in element declaration

Required properties

  • id: string
  • label: string

Supported props

  • value: boolean – Initial value (default: '')
  • htmlAttributes: object – get applied to the <input type="text"> element
  • required: boolean – determines if the element requires text (i.e., the field must not be empty) to be valid (default: false)
← Text area
  • Signature
  • Type
  • Description
  • Properties in element declaration
    • Required properties
    • Supported props
xd-dialog-helper
Docs
Getting StartedExamplesAPI Reference
Community
User ShowcaseTwitter
More
GitHubLegal NoticePrivacy Policy
Copyright © 2019 Pablo Klaschka