InfoBoxViewModel - Cesium Documentation

# InfoBoxViewModel

#### new InfoBoxViewModel()

  The view model for `InfoBox`.
  Source: Widgets/InfoBox/InfoBoxViewModel.js, line 22

### Members

#### cameraClicked :Event

  Gets an `Event` that is fired when the user clicks the camera icon.
  Source: Widgets/InfoBox/InfoBoxViewModel.js, line 99

#### cameraIconPath :String

  Gets the SVG path of the camera icon, which can change to be "crossed out" or not.
  Source: Widgets/InfoBox/InfoBoxViewModel.js, line 70

#### closeClicked :Event

  Gets an `Event` that is fired when the user closes the info box.
  Source: Widgets/InfoBox/InfoBoxViewModel.js, line 109

#### description :String

  Gets or sets the description HTML for the info box.
  Source: Widgets/InfoBox/InfoBoxViewModel.js, line 60

#### enableCamera :Boolean

  Gets or sets whether the camera tracking icon is enabled.
  Source: Widgets/InfoBox/InfoBoxViewModel.js, line 36

#### isCameraTracking :Boolean

  Gets or sets the status of current camera tracking of the selected object.
  Source: Widgets/InfoBox/InfoBoxViewModel.js, line 42

#### maxHeight :Number

  Gets or sets the maximum height of the info box in pixels. This property is observable.
  Source: Widgets/InfoBox/InfoBoxViewModel.js, line 30

#### showInfo :Boolean

  Gets or sets the visibility of the info box.
  Source: Widgets/InfoBox/InfoBoxViewModel.js, line 48

#### titleText :String

  Gets or sets the title text in the info box.
  Source: Widgets/InfoBox/InfoBoxViewModel.js, line 54

### Methods

#### maxHeightOffset(offset) → String

  Gets the maximum height of sections within the info box, minus an offset, in CSS-ready form.

  Name | Type | Description
  --- | --- | ---
  `offset` | Number | The offset in pixels.

  ##### Returns:

  Source: Widgets/InfoBox/InfoBoxViewModel.js, line 89