components.Geolocation.Geolocation
Summary
Creates a full Geolocation component with its whole logic encapsulated:
- button to launch a geolocation request
- spinner while requesting (based on Spinner)
- display of the result
Example:
var myGeolocation = (new Geolocation('geolocation')).init();
Constructor
components.Geolocation.Geolocation
Syntax
components.Geolocation.Geolocation
(
-
domNode
Summary
Parameters:
-
domNode
HTMLElement | StringCan be an domNode or a domNode id
Methods
hide
Syntax
Summary
Displays none your component.
Returns:
init
Syntax
Summary
Inits the Geolocation component, adding all its specific logic.
Returns:
show
Syntax
Summary
Displays block your component.