> For the complete documentation index, see [llms.txt](https://docs.dbnetsoft.com/dbnetsoft/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native/custom-elements.md).

# Custom elements

Clocks, stopwatches, lists, video, NDI, masks, flags and slideshows for HTML layouts.

`layout.js` brings custom elements for what Screens.Controls does in XAML layouts. Use them like any HTML element: CSS places, sizes and animates them. Give them an `id` to control them from a client.

Their properties and methods have the ScreensPro names, so the packets are the same as for the XAML elements: SetProperty `Text` / `TargetTime` / `Items`, CallMethod `Start` / `Stop` / `Play`. Attributes are written in lower case with dashes (`items-visible`), properties in ScreensPro's spelling (`ItemsVisible`). Every attribute can also be bound with `data-set-<name>`.

| Element                                                                                                                                    | ScreensPro / XAML                       | For                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------- | ---------------------------------------------------------- |
| [`<sp-clock>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native/custom-elements/clocks-and-timers.md#sp-clock)            | ClockElement                            | Time of day                                                |
| [`<sp-stopwatch>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native/custom-elements/clocks-and-timers.md#sp-stopwatch)    | StopwatchElement                        | Running times, countdowns                                  |
| [`<sp-targettime>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native/custom-elements/clocks-and-timers.md#sp-targettime)  | TargetTimeElement                       | Time to / since a point in time                            |
| [`<sp-items>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native/custom-elements/lists.md#sp-items)                        | ItemsElement, ListElement, ItemsControl | Lists with pages and row animations                        |
| [`<sp-video>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native/custom-elements/video-and-live.md#sp-video)               | VideoElement(Ffmpeg)                    | Video clips, ProRes 4444 with alpha                        |
| [`<sp-ndi>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native/custom-elements/video-and-live.md#sp-ndi)                   | NdiElement                              | An NDI source in the layout                                |
| [`<sp-stream>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native/custom-elements/video-and-live.md#sp-stream)             |                                         | A network stream (SRT, RTMP, RTSP, UDP, HLS) in the layout |
| [`<sp-mask>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native/custom-elements/masks.md#sp-mask)                          | Track matte, G-Studio's Mask effect     | Showing content through an animated mask clip              |
| [`<sp-wave>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native/custom-elements/flags-and-slideshows.md#sp-wave)           | FlagWaveEffect                          | A waving flag                                              |
| [`<sp-slideshow>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native/custom-elements/flags-and-slideshows.md#sp-slideshow) | SlideshowElement                        | The images of a folder in turn                             |

## In this section

* [Clocks and timers](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native/custom-elements/clocks-and-timers.md) - , , and the time formats
* [Lists and tickers](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native/custom-elements/lists.md) - ,
* [Video, NDI and streams](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native/custom-elements/video-and-live.md) - , ,
* [Masks](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native/custom-elements/masks.md) - and data-mask
* [Flags and slideshows](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native/custom-elements/flags-and-slideshows.md) - ,
