OverlayOptions
Base options for an overlay.
Extends
Record<string,any>
Extended by
Properties
attributes?
optionalattributes:Record<string,string>
Optional custom attributes to write to the overlay's element.
cssClass?
optionalcssClass:string
Optional CSS class(es) to add to the overlay's element.
direction?
optionaldirection:number
1 to point forwards (the default), -1 to point backwards. Only taken into consideration in some overlay types.
events?
optionalevents:Record<OverlayEvents, (value,event?) =>any>
Optional event handlers to attach to the overlay.
id?
optionalid:string
Optional ID for the overlay. Can be used to retrieve the overlay from a connection.
location?
optionallocation:number
Defaults to 0.5. See docs.
visibility?
optionalvisibility:OverlayVisibility
Whether the overlay is always visible, or only on hover. Defaults to OVERLAY_VISIBILITY_ALWAYS.