# HomeButtonViewModel

#### new Cesium.HomeButtonViewModel(scene, duration)
widgets/Source/HomeButton/HomeButtonViewModel.js 13

The view model for `HomeButton`.

Name | Type | Description
--- | --- | ---
`scene` | Scene | The scene instance to use.
`duration` | number | optional The duration of the camera flight in seconds.

### Members

#### command : Command
widgets/Source/HomeButton/HomeButtonViewModel.js 57

Gets the Command that is executed when the button is clicked.

#### duration : number|undefined
widgets/Source/HomeButton/HomeButtonViewModel.js 71

Gets or sets the the duration of the camera flight in seconds. A value of zero causes the camera to instantly switch to home view. The duration will be computed based on the distance when undefined.

#### scene : Scene
widgets/Source/HomeButton/HomeButtonViewModel.js 45

Gets the scene to control.

#### tooltip : string
widgets/Source/HomeButton/HomeButtonViewModel.js 33

Gets or sets the tooltip. This property is observable.

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