HoloMap.Control.Fullscreen (HoloMap v0.1.0)

Copy Markdown View Source

A button that expands the map to fill the screen.

<HoloMap.Control.Fullscreen position="top-left" />

Props

PropTypeNotes
positionstringCorner to place the control in. Default "top-right"

The button expands the map's own container, so anything rendered outside it, such as a sidebar or a legend in your own markup, is not part of the fullscreen view. Put controls that should survive fullscreen inside the map as HoloMap.Control components.

Summary

Functions

Returns true to indicate that the callee module is a component module (has "use Hologram.Component" directive).

Returns the list of property definitions for the compiled component.

Functions

__is_hologram_component__()

@spec __is_hologram_component__() :: boolean()

Returns true to indicate that the callee module is a component module (has "use Hologram.Component" directive).

Examples

iex> __is_hologram_component__()
true

__props__()

@spec __props__() :: [{atom(), atom(), keyword()}]

Returns the list of property definitions for the compiled component.