Location Module

Update and track the current window.location object through the window.history state. Use in conjunction with the `dash_core_components.Link` component to make apps with multiple pages.

Types

Type Description

Attr

A list of children or a property for this dash component

Location

Update and track the current window.location object through the window.history state. Use in conjunction with the `dash_core_components.Link` component to make apps with multiple pages.

Prop

• pathname (string) - pathname in window.location - e.g., "/my/full/pathname" • search (string) - search in window.location - e.g., "?myargument=1" • hash (string) - hash in window.location - e.g., "#myhash" • href (string) - href in window.location - e.g., "/my/full/pathname?myargument=1#myhash" • refresh (boolean; default true) - Refresh the page when the location is updated?

Functions and values

Function or value Description

Location.location id attrs

Full Usage: Location.location id attrs

Parameters:
    id : string
    attrs : Attr list

Returns: DashComponent

Update and track the current window.location object through the window.history state. Use in conjunction with the `dash_core_components.Link` component to make apps with multiple pages. Properties: • id (string) - The ID of this component, used to identify dash components in callbacks. The ID needs to be unique across all of the components in an app. • pathname (string) - pathname in window.location - e.g., "/my/full/pathname" • search (string) - search in window.location - e.g., "?myargument=1" • hash (string) - hash in window.location - e.g., "#myhash" • href (string) - href in window.location - e.g., "/my/full/pathname?myargument=1#myhash" • refresh (boolean; default true) - Refresh the page when the location is updated?

id : string
attrs : Attr list
Returns: DashComponent