---
schema_version: "1"
id: 286dbfd30be917c4cae416f3e2e93d02f34534ddc5a3ecb924ccb5b9fc2213a2
title: AnalyticsCloudComponentLayoutItem Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_Metadata_AnalyticsCloudComponentLayoutItem.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_AnalyticsCloudComponentLayoutItem.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 892de25c7980e16b8928939cb076f2a7c32e76174d1b3e87cca4ac07035a4204
description: Represents the settings for a Wave Analytics dashboard on a standard or custom page.Specifies the type of Wave Analytics asset.Unique development name of the dashboard to add.An error string that is populated only when an error occurred in the underlying dashboard.Dashboard filters for mapping data fields in the dashboard to the object’s fields.Specifies the height of the dashboard, in pixels.Controls whether users see a dashboard that has an error.If true, includes the dashboard’s header bar. If false, the dashboard appears without a header bar.If set to true, and the dashboard is shareable the dashboard shows the Share icon. If set to false, the dashboard doesn’t show the Share icon.If true, includes the dashboard’s title above the dashboard. If false, the dashboard appears without a title.Specifies the width of the dashboard, in pixels or percentage.Makes a duplicate copy of the Metadata.AnalyticsCloudComponentLayoutItem.
---
# AnalyticsCloudComponentLayoutItem Class

Represents the settings for a Wave Analytics dashboard on a standard or custom page.

## Namespace

[Metadata](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Metadata.htm "The Metadata namespace provides classes and methods for working with custom metadata in Salesforce")

## Usage

Use this class when accessing [Metadata.Layout](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_Layout.htm#apex_class_Metadata_Layout "Represents the metadata associated with a page layout.") metadata components. For more information, see “AnalyticsCloudComponentLayoutItem” in the [Metadata API Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_intro.htm).

- **[AnalyticsCloudComponentLayoutItem Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_AnalyticsCloudComponentLayoutItem.htm#apex_Metadata_AnalyticsCloudComponentLayoutItem_properties)**
- **[AnalyticsCloudComponentLayoutItem Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_AnalyticsCloudComponentLayoutItem.htm#apex_Metadata_AnalyticsCloudComponentLayoutItem_methods)**

## AnalyticsCloudComponentLayoutItem Properties

The following are properties for AnalyticsCloudComponentLayoutItem.

- **[assetType](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_AnalyticsCloudComponentLayoutItem.htm#apex_Metadata_AnalyticsCloudComponentLayoutItem_assetType)**  
    Specifies the type of Wave Analytics asset.
- **[devName](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_AnalyticsCloudComponentLayoutItem.htm#apex_Metadata_AnalyticsCloudComponentLayoutItem_devName)**  
    Unique development name of the dashboard to add.
- **[error](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_AnalyticsCloudComponentLayoutItem.htm#apex_Metadata_AnalyticsCloudComponentLayoutItem_error)**  
    An error string that is populated only when an error occurred in the underlying dashboard.
- **[filter](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_AnalyticsCloudComponentLayoutItem.htm#apex_Metadata_AnalyticsCloudComponentLayoutItem_filter)**  
    Dashboard filters for mapping data fields in the dashboard to the object’s fields.
- **[height](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_AnalyticsCloudComponentLayoutItem.htm#apex_Metadata_AnalyticsCloudComponentLayoutItem_height)**  
    Specifies the height of the dashboard, in pixels.
- **[hideOnError](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_AnalyticsCloudComponentLayoutItem.htm#apex_Metadata_AnalyticsCloudComponentLayoutItem_hideOnError)**  
    Controls whether users see a dashboard that has an error.
- **[showHeader](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_AnalyticsCloudComponentLayoutItem.htm#apex_Metadata_AnalyticsCloudComponentLayoutItem_showHeader)**  
    If true, includes the dashboard’s header bar. If false, the dashboard appears without a header bar.
- **[showSharing](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_AnalyticsCloudComponentLayoutItem.htm#apex_Metadata_AnalyticsCloudComponentLayoutItem_showSharing)**  
    If set to true, and the dashboard is shareable the dashboard shows the Share icon. If set to false, the dashboard doesn’t show the Share icon.
- **[showTitle](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_AnalyticsCloudComponentLayoutItem.htm#apex_Metadata_AnalyticsCloudComponentLayoutItem_showTitle)**  
    If true, includes the dashboard’s title above the dashboard. If false, the dashboard appears without a title.
- **[width](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_AnalyticsCloudComponentLayoutItem.htm#apex_Metadata_AnalyticsCloudComponentLayoutItem_width)**  
    Specifies the width of the dashboard, in pixels or percentage.

### assetType

Specifies the type of Wave Analytics asset.

#### Signature

public String assetType {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### devName

Unique development name of the dashboard to add.

#### Signature

public String devName {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### error

An error string that is populated only when an error occurred in the underlying dashboard.

#### Signature

public String error {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### filter

Dashboard filters for mapping data fields in the dashboard to the object’s fields.

#### Signature

public String filter {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### height

Specifies the height of the dashboard, in pixels.

#### Signature

public Integer height {get; set;}

#### Property Value

Type: [Integer](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_integer.htm#apex_methods_system_integer "Contains methods for the Integer primitive data type.")

### hideOnError

Controls whether users see a dashboard that has an error.

#### Signature

public Boolean hideOnError {get; set;}

#### Property Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### showHeader

If true, includes the dashboard’s header bar. If false, the dashboard appears without a header bar.

#### Signature

public Boolean showHeader {get; set;}

#### Property Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### showSharing

If set to true, and the dashboard is shareable the dashboard shows the Share icon. If set to false, the dashboard doesn’t show the Share icon.

#### Signature

public Boolean showSharing {get; set;}

#### Property Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### showTitle

If true, includes the dashboard’s title above the dashboard. If false, the dashboard appears without a title.

#### Signature

public Boolean showTitle {get; set;}

#### Property Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### width

Specifies the width of the dashboard, in pixels or percentage.

#### Signature

public String width {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

## AnalyticsCloudComponentLayoutItem Methods

The following are methods for AnalyticsCloudComponentLayoutItem.

- **[clone()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_AnalyticsCloudComponentLayoutItem.htm#apex_Metadata_AnalyticsCloudComponentLayoutItem_clone)**  
    Makes a duplicate copy of the Metadata.AnalyticsCloudComponentLayoutItem.

### clone()

Makes a duplicate copy of the Metadata.AnalyticsCloudComponentLayoutItem.

#### Signature

public Object clone()

#### Return Value

Type: Object