> For the complete documentation index, see [llms.txt](https://docs.pages.revox.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pages.revox.io/angular/widgets.md).

# Widgets

Pre-built widget components that you can integrate with your dashboards or social feeds.

Pages comes with 24 pre-built widget components that you can easily integrate with your dashboards in no time. These can be found in `dashboard/widgets`folder and each widget folder is named after its `@Component`'s `selector.`Widgets are based off [pgcard component](/angular/ui-components/cards.md)&#x20;

## Importing

Widgets are available throughout all the pre-built dashboards via `dashboard.module.ts`. But if you are planning use them outside you will have to import them as below.&#x20;

```typescript
// Using ImageWidgetComponent as an example. Same steps apply to other widgets
import { ImageWidgetComponent } from './widgets/image-widget/image-widget.component';
@NgModule({
  declarations: [ImageWidgetComponent,...]
})
export class AppModule(){}
```

## bar-tile-widget

Features a stacked bar chart made with `echarts` component:

```http
<bar-tile-widget></bar-tile-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE3txB7gYe61yMKJfM3%2F-LE3uGedgx6zvYsP8O9b%2FScreen%20Shot%202018-06-03%20at%201.49.14%20PM.png?alt=media\&token=efe8018a-6e01-45e3-abed-cf67e400b88f)

## graph-live-widget

Features a looping vertical slider with stock market updates.&#x20;

```http
<graph-live-widget></graph-live-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE3txB7gYe61yMKJfM3%2F-LE3vDFOtSKNb5F35Hhl%2FScreen%20Shot%202018-06-03%20at%201.49.56%20PM.png?alt=media\&token=b0012f03-1189-4f61-8142-35be7f05a039)

## graph-options-widget

Features a line chart with toggle buttons.&#x20;

```http
<graph-options-widget></graph-options-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE3txB7gYe61yMKJfM3%2F-LE3vnTkbom6QcNf6Ecw%2FScreen%20Shot%202018-06-03%20at%201.50.44%20PM.png?alt=media\&token=bf4ae6b8-f0f3-48d6-ad6d-aae84bcda55b)

## graph-tile-flat-widget

Features a line chart with sales stats.&#x20;

```http
<graph-tile-flat-widget></graph-tile-flat-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE3txB7gYe61yMKJfM3%2F-LE3w4iwxriJBIKJ4i0l%2FScreen%20Shot%202018-06-03%20at%201.48.40%20PM.png?alt=media\&token=9e2d9db4-edd0-4df7-a2fc-d55dc3a90f2a)

## graph-tile-widget

Features a line chart with area filled in.&#x20;

```http
<graph-tile-widget></graph-tile-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE3txB7gYe61yMKJfM3%2F-LE3wNQ-4KkuQrYG4qq0%2FScreen%20Shot%202018-06-03%20at%201.48.28%20PM.png?alt=media\&token=e1e9717f-cad7-4d87-9d7a-fd3a494a6ba5)

## graph-widget

Features a line chart with multiple series of data.

```http
<graph-widget></graph-widget>
```

| **Property** | **Description**                                                    | **Type** | **Default** |
| ------------ | ------------------------------------------------------------------ | -------- | ----------- |
| `IsAlt`      | Toggles three boxes with stock trading highlights and a search bar | boolean  | false       |

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE3zS__j-Xacbh4nixy%2F-LE4-cHaZbbDniGBzGtd%2FScreen%20Shot%202018-06-03%20at%203.07.36%20PM.png?alt=media\&token=ba1f0ef0-51bc-4b81-9d4e-7629f69ea7d4)

![Default view](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE3txB7gYe61yMKJfM3%2F-LE3wlZ2eNYaDo0JWEHl%2FScreen%20Shot%202018-06-03%20at%201.49.23%20PM.png?alt=media\&token=7d5b7807-5393-4829-b2d5-537b5f704f31)

## image-widget

Features a background image and an text overlay.&#x20;

```http
<image-widget></image-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE3zS__j-Xacbh4nixy%2F-LE4-uEH1uS_3WhL2KSq%2FScreen%20Shot%202018-06-03%20at%201.47.50%20PM.png?alt=media\&token=78c486cb-cbdd-4bfb-9e71-dec2015d6221)

## image-widget-basic

Features a background image and a text overlay. Intended to use for showing minimal content.&#x20;

```http
<image-widget-basic></image-widget-basic>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE3zS__j-Xacbh4nixy%2F-LE40V9OhOCczAacGHj0%2FScreen%20Shot%202018-06-03%20at%201.49.34%20PM.png?alt=media\&token=34b19bd1-4bfb-4503-b6d2-b1d1bfa9f21c)

## plain-live-widget

Features a rotating text

```http
<plain-live-widget></plain-live-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE3zS__j-Xacbh4nixy%2F-LE42d6qaKCdfQI-Ci5h%2FScreen%20Shot%202018-06-03%20at%201.49.41%20PM.png?alt=media\&token=89c7c395-ee7c-4bf9-ba8d-58ee410021ff)

## plain-widget

Features quick weather info&#x20;

```http
<plain-widget></plain-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE3zS__j-Xacbh4nixy%2F-LE4392656_RO_Z0nnCa%2FScreen%20Shot%202018-06-03%20at%201.49.49%20PM.png?alt=media\&token=9a242415-ceda-48b6-8ad7-72fde9bd8d2c)

## progress-tile-flat-widget

Features a large title text and a progress bar

```http
<progress-tile-flat-widget></progress-tile-flat-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE3zS__j-Xacbh4nixy%2F-LE43_2511WoO02WXshT%2FScreen%20Shot%202018-06-03%20at%201.48.52%20PM.png?alt=media\&token=466fd663-e3c6-4146-9679-32fcd6ca383c)

## project-progress-widget

Features multiple progress bars in a tab view.&#x20;

```http
<project-progress-widget></project-progress-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE3zS__j-Xacbh4nixy%2F-LE4410oBd5ns0WWU07A%2FScreen%20Shot%202018-06-03%20at%201.54.34%20PM.png?alt=media\&token=8adf08ca-4c10-4259-88db-ac8004fa863b)

## quick-stats-widget

Features quick stats in extra large text and a progress bar.

```http
<quick-stats-widget></quick-stats-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE3zS__j-Xacbh4nixy%2F-LE413n52t_6g3110ssV%2FScreen%20Shot%202018-06-03%20at%203.13.52%20PM.png?alt=media\&token=f1658a50-2666-48a6-a1ec-b4067d3e768c)

## realtime-widget

Designed to show live streaming data in a line chart. Demo widget represents sample data updated using a timer.&#x20;

```http
<realtime-widget></realtime-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE4uhec0wiqaIpsrLcV%2F-LE50ftWQX1uFCpnt8is%2FScreen%20Shot%202018-06-03%20at%201.50.20%20PM.png?alt=media\&token=49c40fa9-f081-4361-b38e-8ed3a7b48c35)

## social-image-tile-widget

Shows an image in the style of a social feed post.&#x20;

```http
<social-image-tile-widget></social-image-tile-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE4uhec0wiqaIpsrLcV%2F-LE53pZCnCMTtnSP6Ps2%2FScreen%20Shot%202018-06-03%20at%208.05.24%20PM.png?alt=media\&token=1166584f-2364-4742-947a-c7687cc94171)

## social-post-tile-widget

Shows a social post with text and an image.&#x20;

```http
<social-post-tile-widget></social-post-tile-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE4uhec0wiqaIpsrLcV%2F-LE56a1Bd4hq64aqYVOl%2FScreen%20Shot%202018-06-03%20at%208.05.31%20PM.png?alt=media\&token=8236024f-7a37-491f-93e4-1f12731cf793)

## stacked-bar-widget

Features a [pg-tabset](/angular/ui-components/tabs.md) component with stacked bar charts representing multiple data sources for quick comparison. &#x20;

```http
<stacked-bar-widget></stacked-bar-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE4uhec0wiqaIpsrLcV%2F-LE59wBp9Q1k3JugSNxc%2FScreen%20Shot%202018-06-03%20at%201.50.31%20PM.png?alt=media\&token=106a0d96-d462-43b9-92cc-d4a514cbe55f)

## stat-tile-widget

This is also another mini widget similar to `quick-stats-widget` and `progress-tile-flat widget`. Sample widget illustrates stock trading stats &#x20;

```http
<stat-tile-widget></stat-tile-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE4uhec0wiqaIpsrLcV%2F-LE5A_cd_XLKlXN3Kb7g%2FScreen%20Shot%202018-06-03%20at%201.49.01%20PM.png?alt=media\&token=03901d79-d060-498c-b015-747d8d96417f)

## table-basic-widget

Features a basic table layout. &#x20;

```http
<table-basic-widget></table-basic-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE5Az3ZJTjBgNL5GG3D%2F-LE5BBHKKVOwLqkJA7zB%2FScreen%20Shot%202018-06-03%20at%201.50.11%20PM.png?alt=media\&token=2b655487-2778-4552-bae4-49fa784d6686)

## table-widget

This is another variation of `table-basic-widget.`&#x20;

```http
<table-widget></table-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE5Az3ZJTjBgNL5GG3D%2F-LE5BqRWcuvyVhO9_YCg%2FScreen%20Shot%202018-06-03%20at%208.40.20%20PM.png?alt=media\&token=335df82f-81d7-4144-a3aa-f5a655be564c)

## todo-list-widget

Show todo-list items with checkboxes.&#x20;

```http
<todo-list-widget></todo-list-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE5Az3ZJTjBgNL5GG3D%2F-LE5CTIHanA-vaLC7hOJ%2FScreen%20Shot%202018-06-03%20at%201.54.42%20PM.png?alt=media\&token=8b500989-429d-4103-9509-e7377acdebaf)

## weather-widget

Shows weekly weather data together with animated weather icons from [Skycons](https://github.com/darkskyapp/skycons).&#x20;

```http
<todo-list-widget></todo-list-widget>
```

| **Property** | **Description**                                                                                                                                       | **Type** | **Default** |
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------- |
| `Type`       | By default weather widget shows two highlighted columns with weather data to the right in extra large screens. Set this to "compact" to disable them. | string   | undefined   |

![With Type option set to "compact"](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE5Az3ZJTjBgNL5GG3D%2F-LE5Da6gvkCLRN6uR7Xg%2FScreen%20Shot%202018-06-03%20at%201.50.50%20PM.png?alt=media\&token=fbbb6619-da47-4976-8f1f-5d6b38dbb8f6)

![Default widget](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE5Az3ZJTjBgNL5GG3D%2F-LE5EQNsAOMaldOa5PSd%2FScreen%20Shot%202018-06-03%20at%208.51.45%20PM.png?alt=media\&token=7d6f12b0-fa82-418a-944a-97b4409625eb)

## weekly-sales-widget

This is also another mini widget showing weekly sales data. &#x20;

```http
<weekly-sales-widget></weekly-sales-widget>
```

![](https://1744695204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDBWrdKcsIL5-tSGnv_%2F-LE5Az3ZJTjBgNL5GG3D%2F-LE5F5gv91BAtCZzmwbI%2FScreen%20Shot%202018-06-03%20at%208.54.50%20PM.png?alt=media\&token=978ff9be-1c09-48b8-8e65-1cc5c040202d)
