Class: InputMedia

mcutils.control. InputMedia

Input to select media in a dialog


new InputMedia(options)

Parameters:
Name Type Description
options Object

a list of options

Properties
Name Type Argument Default Description
input Element <optional>

if none create one in the parent option

parent Element <optional>

parent to place the input if no input option

placeholder string <optional>
Url de l'image
btnTitle string <optional>
Rechercher dans la galerie

button title

fullpath boolean <optional>
false

return fullpath url

useCors boolean <optional>
false

check if image support crossOrigin

thumb boolean <optional>
false

thumbnail default checkbox value

add boolean <optional>
false

add button to add a new image to the lib

Source:
control/InputMedia.js
Fires:
  • event:load

Extends

  • ol/Object

Methods


getValue()

Get media url

Source:
control/InputMedia.js
Returns:
Type
string

setValue()

Get media url

Source:
control/InputMedia.js
Returns:
Type
string