# HomeButton

#### new Cesium.HomeButton(container, scene, duration)
widgets/Source/HomeButton/HomeButton.js 20

A single button widget for returning to the default camera view of the current scene.

Name | Type | Description
--- | --- | ---
`container` | Element | string | The DOM element or ID that will contain the widget.
`scene` | Scene | The Scene instance to use.
`duration` | number | optional The time, in seconds, it takes to complete the camera flight home.

### Members

#### container : Element
widgets/Source/HomeButton/HomeButton.js 61

Gets the parent container.

#### viewModel : HomeButtonViewModel
widgets/Source/HomeButton/HomeButton.js 73

Gets the view model.

### Methods

#### destroy()
widgets/Source/HomeButton/HomeButton.js 91

Destroys the widget. Should be called if permanently removing the widget from layout.

#### isDestroyed() → boolean
widgets/Source/HomeButton/HomeButton.js 83

##### Returns:

true if the object has been destroyed, false otherwise.

Need help? The fastest way to get answers is from the community and team on the Cesium Forum.