# jig.fullscreen

{% columns %}
{% column %}
The `jig.full-screen` allows you to configure a component that covers the entire screen of the jig with no other elements visible. This is useful for creating a full screen of a [location](https://docs.jigx.com/examples/readme/components/location) screen.
{% endcolumn %}

{% column %}

<figure><img src="https://1414514342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHcPzbms3kZejTmFd500V%2Fuploads%2FkkmCACoGVOwPFh69q4AK%2Fjig.fullscreen.png?alt=media&#x26;token=054e8ac1-c3d7-4238-85a4-120fb847b7f7" alt="Location in full screen" width="188"><figcaption><p>Location in full screen</p></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

## Considerations

* This jig type does not allow for a `description` or `header` properties.
* The [location](https://docs.jigx.com/examples/readme/components/location) component can be used in the `jig.full-screen`.
* When using an action within the jig, check that the action button does not overlap the fullscreen functionality. The best practice is not to use an action with the full-screen jig, as the action button covers elements shown in the full-screen.
* Avoid using the [home button](https://docs.jigx.com/examples/readme/common-jig-type-properties#home-button-visibility) with a web-view. This ensures that the web-view can make full use of the available screen space.
* It is not recommended to use a full-screen jig in a [composite](https://docs.jigx.com/examples/readme/jig-types/jig_composite) jig, combining the fullscreen with another jig will not provide the optimal layout for the jig.

## Configuration options

Some properties are common to all jig types, see [Common jig type properties](https://docs.jigx.com/examples/readme/jig-types/jig_fullscreen) for a list and their configuration options.

The `jig.full-screen` can be configured in the following way in Jigx Builder.

<table><thead><tr><th width="135.89453125">Core structure</th><th></th></tr></thead><tbody><tr><td><code>component</code></td><td><p>Select the component to display as a full-screen, the available components are:</p><ul><li><code>component.chat</code></li><li><code>component.custom-component</code></li><li><code>component.location</code></li><li><code>component.web-view</code></li></ul></td></tr><tr><td><code>title</code></td><td>Give the jig a title that is displayed at the top of the screen. If you do not want to show a title in a jig use <code>title: ' '</code>.</td></tr><tr><td><code>type</code></td><td>Select <code>jig.full-screen</code></td></tr></tbody></table>

## Examples and code snippets

### Full-screen of a map

{% columns %}
{% column %}

<figure><img src="https://1414514342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHcPzbms3kZejTmFd500V%2Fuploads%2FkkmCACoGVOwPFh69q4AK%2Fjig.fullscreen.png?alt=media&#x26;token=054e8ac1-c3d7-4238-85a4-120fb847b7f7" alt="Full screen jig" width="188"><figcaption><p>Full screen jig</p></figcaption></figure>
{% endcolumn %}

{% column %}
In this example the location to the Seattle Aquarium is shown in full screen using jig type `jig.full-screen`, `component.location` and Dynamic Data datasource called address.

Refer to the [location](https://docs.jigx.com/examples/readme/components/location) component for additional location setup options.

**Examples:**\
See the full code sample using dynamic data in [GitHub](https://github.com/jigx-com/jigx-samples/blob/main/quickstart/jigx-samples/jigs/jig-types/jig-fullscreen/fullscreen-location-dd.jigx).
{% endcolumn %}
{% endcolumns %}

{% tabs %}
{% tab title="location-fullscreen-dynamic.jigx" %}

```yaml
title: Aquarium Location
type: jig.full-screen

component:
  type: component.location
  options:
    viewPoint:
      address: 1483 Alaskan Way, Seattle, US
      zoomLevel: 15
    markers:
      data: =@ctx.datasources.address
      item:
        type: component.marker-item
        options:
          address: 1483 Alaskan Way, Seattle, US
          children:
            type: component.icon
            options:
              size: medium
              color: negative
              icon: end-marker
```

{% endtab %}

{% tab title="datasource (dynamic)" %}

```yaml
type: datasource.sqlite
options:
  provider: DATA_PROVIDER_DYNAMIC
  entities:
    - entity: default/location
  query: |
    SELECT
      '$.id',
      '$.address',
      '$.address-us',
      '$.category',  
      '$.lat',
      '$.lng',
      '$.city',
      '$.country',
      '$.street'
    FROM [default/location] WHERE '$.category' = "location"
```

{% endtab %}
{% endtabs %}

## Chatbot in a full-screen jig

See the [chatbot with OpenAI](https://docs.jigx.com/examples/readme/components/chat) example.

## See Also

* [Jigs (screens)](https://docs.jigx.com/building-apps-with-jigx/ui/jigs-_screens_)
* [location](https://docs.jigx.com/examples/readme/components/location)
