module:bajaux/dragdrop/StringEnvelope

module:bajaux/dragdrop/StringEnvelope

new (require("bajaux/dragdrop/StringEnvelope"))(arr)

Description:
  • Envelope for simply transferring an array of strings.

Source:
Extends:
Parameters:
Name Type Description
arr Array.<String>

the strings contained in this envelope. (Any
non-Strings will be toString-ed.)

Extends

Methods

getMimeType() → {string}

Source:
Overrides:
Returns:

niagara/strings

Type
string

toJson() → {Promise.<Array.<String>>}

Description:
  • The strings contained in the envelope (for simple strings, the JSON
    and values are the same).

Source:
Overrides:
Returns:

promise to be resolved with an array of strings

Type
Promise.<Array.<String>>

toValues() → {Promise.<Array.<String>>}

Description:
  • The strings contained in the envelope (for simple strings, the JSON
    and values are the same).

Source:
Overrides:
Returns:

promise to be resolved with an array of strings

Type
Promise.<Array.<String>>