new (require("bajaux/dragdrop/StringEnvelope"))(arr)
Envelope for simply transferring an array of strings.
Extends:
Parameters:
Name | Type | Description |
---|---|---|
arr |
Array.<String> | the strings contained in this envelope. (Any |
Methods
-
getMimeType()
-
- Overrides:
Returns:
niagara/strings
- Type
- string
-
toJson()
-
The strings contained in the envelope (for simple strings, the JSON
and values are the same).- Overrides:
Returns:
promise to be resolved with an array of strings
- Type
- Promise
-
toValues()
-
The strings contained in the envelope (for simple strings, the JSON
and values are the same).- Overrides:
Returns:
promise to be resolved with an array of strings
- Type
- Promise