# Tab Component

Tab component has an option to create multiple buttons that can be associated to the group for displaying the show & hide visibility for the group components.

{% hint style="success" %}
Check out the given demonstration on the Tab component.
{% endhint %}

<figure><img src="https://2847660295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTmpwImm2wvMpv2GGC779%2Fuploads%2Fl0rAqDjzcaYskSzWcRf0%2FTab%20component.gif?alt=media&#x26;token=1a9ff039-fdbd-4179-b836-69aaa36ef23a" alt=""><figcaption><p>using the Tab component in a Dashboard</p></figcaption></figure>

## Default Component Image

<figure><img src="https://2847660295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTmpwImm2wvMpv2GGC779%2Fuploads%2FWXDrGIyu23srx9nK5F2Z%2Fimage.png?alt=media&#x26;token=e4f1b3e5-c558-4f1c-a103-b751297ea7b0" alt=""><figcaption></figcaption></figure>

## Properties of the Tab Component

### **General**

User can change the height, width, top, left. If initial visibility is unchecked, then the chart won’t be visible at the first preview. User can mange the tab & associate the group. The **Tab Alignment** properties field has been provided to set Vertical or Horizontal alignment for a Tab component.

![](https://2847660295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTmpwImm2wvMpv2GGC779%2Fuploads%2FrmiBm593vuMPsFFisUCn%2Fimage.png?alt=media\&token=6917ec91-3418-44c5-9a47-7eb43b3802af)

### **Manage Tabs**

* The user can add multiple tabs and change the tab names.&#x20;
* The Manage Tabs provides option to show the icons as per requirement.&#x20;

  E.g., ***bd-diamond*** will display the normal icon.
* The user can select the default tab as displayed in the following image.&#x20;

<figure><img src="https://2847660295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTmpwImm2wvMpv2GGC779%2Fuploads%2FjZei22xFMWy8whcKuJrf%2Fimage.png?alt=media&#x26;token=1f8a10c7-7185-4f87-b8f5-50601a122c29" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note</mark>: The **Manage Tabs** option is provided inside the **General** Properties.*
{% endhint %}

### **Associate Groups**

The Associate Groups option is used to associate groups with charting components to each tab using the drop down as shown in the below given image:

<figure><img src="https://2847660295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTmpwImm2wvMpv2GGC779%2Fuploads%2FjWCs3jaUDG5UdeM2N5jG%2Fimage.png?alt=media&#x26;token=c56792de-5ba8-4cd6-aa64-6a7690fb34cc" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note</mark>: The **Associate*** ***Groups** option is provided inside the **General** Properties*.
{% endhint %}

### **Style Properties**

\
User can set the background colour and font colour as well as font styling properties in this section. Background Opacity for Tabs is added as well as spacing to provide space between tabs. Selection colour also added as used if required.

* **Font Size -** Set the font siz&#x65;**.**
* **Button Radius –** Set the Button radiu&#x73;**.**
* **Button Width -** Button width can be control.
* **Spacing –** Set the spacing between the button&#x73;**.**
* **Background Opacity –** Set the opacit&#x79;**.**
* **Font Style –** Select the font styl&#x65;**.**
* **Font Weight –** Select the font weigh&#x74;**.**
* **Font Family -** Select the font famil&#x79;**.**
* **Font Color –** Set the font colo&#x72;**.**
* **Background Color –** Set the background colo&#x72;**.**
* **Selection Color –** Set the selection color.
* **Border on selection** - Enable border on selection&#x20;
* **Border color** - Set the border color - while click on button buttom will show the line & updated color.
* **Border width** - Set the border width
* **Content alignment** - Set the alignment as center /left/right.

&#x20;     ![](https://2847660295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTmpwImm2wvMpv2GGC779%2Fuploads%2F0mMk4UDQZy87NcVxiJra%2Fimage.png?alt=media\&token=115879e1-b40f-48cc-9d3c-75dcd59b3fe4)<br>

## Steps to associate the group with tabs:

Before using the Tab Component,  the user has to create groups with components that can be associated to the tabs later.

### **Creating Groups**

* Click on the ***Manage Dashboard Components*** option provided in the right side panel of the  Dashboard canvas.
* Click the ***Add Group*** option.
* Add each component to its respective group.

&#x20;     ![](https://2847660295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTmpwImm2wvMpv2GGC779%2Fuploads%2F89f9BUE0cCdibxIYmyVu%2Fimage.png?alt=media\&token=6fc655de-4fab-4276-ade4-dc4b9c5a1a01)

* Open the ***Manage Tabs*** from the ***General*** Properties.

&#x20;      ![](https://2847660295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTmpwImm2wvMpv2GGC779%2Fuploads%2FOf1uKoI45JpRyLq9twi6%2Fimage.png?alt=media\&token=ad72a9b2-9ba2-4783-be1f-05a2716ec608)&#x20;

* The ***Manage Tabs*** window opens.
* Select a ***Tab*** from the by default selected tabs using the given check box.
* Change ***Tab names*** (if required) and **reference image/icon names** as per requirement.
* Click the ***Save*** option.

&#x20;      ![](https://2847660295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTmpwImm2wvMpv2GGC779%2Fuploads%2F3lXm9fdCTlvmP0jpE79o%2Fimage.png?alt=media\&token=3b605159-456b-4c1b-ae17-d9b542e66f05)

* Open the ***Associate Tabs*** from the ***General*** Properties.

&#x20;     ![](https://2847660295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTmpwImm2wvMpv2GGC779%2Fuploads%2FtCvA1GBHwdDJo9Y57q0X%2Fimage.png?alt=media\&token=1610e11f-2e0f-4661-99f1-316099bf250d)

* The ***Associate Groups*** window opens.
* Select a Tab from the drop-down menu.
* Associate a group for each Tab by using the checkbox.
* Click the ***Save*** option.

&#x20;    &#x20;

<figure><img src="https://2847660295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTmpwImm2wvMpv2GGC779%2Fuploads%2FDlg3qr1CE3lu0crdvoHL%2Fimage.png?alt=media&#x26;token=85ac638a-f9b5-4f64-87dd-000a7721058a" alt=""><figcaption></figcaption></figure>

* Open the ***Preview*** mode for the dashboard.
* Click on the Tab, it will display the associated group of component.

<figure><img src="https://2847660295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTmpwImm2wvMpv2GGC779%2Fuploads%2FZFtfQ4S15IqWJPEQCtmA%2Fimage.png?alt=media&#x26;token=86ee27bc-5f1a-4274-a4ff-b203410488ba" alt=""><figcaption></figcaption></figure>
