FormData

With this component you can send data via the POST/PUT/DELETE method to the current window or another.

Live preview

Open in new tab ↗

With this component you can send data via the POST/PUT/DELETE method to the current window or another.

  • singleton

Configuration

  • method {String} a default HTTP method (default: POST)
  • target {String} a default target (default: _blank)
  • type {String} a default form type (default: application/x-www-form-urlencoded)

Methods

  • component.send(opt)
    • opt.method {String} form method, default config.method
    • opt.target {String} form target, default config.target
    • opt.type {String} form type, default config.target
    • opt.url {String} required URL address
    • opt.data {Object} required form data in the form { key1:value, key2:value }

More UI components

Browse all 348