Class: PopupBase

ol.ext.input. PopupBase

Base class for input popup


new PopupBase(options)

Parameters:
Name Type Description
options *
Properties
Name Type Argument Default Description
className string <optional>
color ol.colorLike <optional>

default color

input Element <optional>

input element, if non create one

parent Element <optional>

parent element, if create an input

position string <optional>
'popup'

fixed | static | popup | inline (no popup)

autoClose boolean <optional>
true

close when click on color

hidden boolean <optional>
false

display the input

Fires:
  • change:color
  • event:color

Extends

Methods


collapse( [b])

show/hide color picker

Parameters:
Name Type Argument Default Description
b boolean <optional>
false

getInputElement()

Get the input element

Inherited From:
Overrides:
Returns:
Type
Element

getValue()

Get the current getValue

Inherited From:
Overrides:
Returns:
Type
string

isCollapsed()

Is the popup collapsed ?

Returns:
Type
boolean

setValue()

Set the current value

Inherited From:
Overrides:

toggle()

Toggle the popup