---
url: https://gudhub.com/docs/gh-elements/link/
title: "Link\n                #"
description: "Link is a gh element that allows users to store links and provides various functions for working with them. First of all this element makes links active . To ad"
lang: uk
updated: 2026-09-08T15:55:03.256Z
---

# Link [#](https://gudhub.com/docs/gh-elements/link/#link)

**Link** is a gh-element that allows users to store links and provides various functions for working with them. First of all this element **makes links active**. To add a link here, the user should click the add button in the element.

![Using the link](https://bitbucket.org/AAtlas/gudhub-documentation/raw/master/Gh_Elements/gh-elements/link-work.gif "Link element")

After that, an input field with settings buttons will appear. When the user has entered a link, to save it, they need to click on the checkmark icon. The other two icons are the cross button, which cancels the action without saving the value, and the trash can button, which deletes the existing value. In addition, for these buttons to appear for a Link field with a saved value, the user must click the pencil button.

## Functional Characteristics [#](https://gudhub.com/docs/gh-elements/link/#functional-characteristics)

The main advantage of this element is that it stores active links. But to be more precise, this element makes all the links it stores active. This greatly simplifies the work with data in the application. Due to its features, the user can, for example, create a shopping list and store [all product links](#multiple) in one field. In addition, the user can [preview the site](#show-in-iframe) or even use its tools from within the elements.

## Element Options [#](https://gudhub.com/docs/gh-elements/link/#element-options)

The element options consists of only one group of settings.

### Field Settings [#](https://gudhub.com/docs/gh-elements/link/#field-settings)

As usual, the field settings contains two standard options, Field Name and Name Space, and a few extras.

![Settings of link field](https://bitbucket.org/AAtlas/gudhub-documentation/raw/master/Gh_Elements/gh-elements/link-field-settings.jpg "Link field settings")

| Name | Description |
| :-- | :-- |
| Multiple | allows to add multiple values; [details...](#multiple) |
| Show in iframe | allows you to display the site via a link in the application as a small window; [details...](#show-in-iframe) |

#### **Multiple** [#](https://gudhub.com/docs/gh-elements/link/#multiple)

The first setting of the current gh-element allows you to determine how many values the field stores. More precisely, it determines whether the value is single or multiple.

![Using the multiple value](https://bitbucket.org/AAtlas/gudhub-documentation/raw/master/Gh_Elements/gh-elements/link-multiple-value.gif "Multiple setting")

If this option is enabled, the field takes a multiple value. Multiple mode is almost no different from single mode. Only the add button appears. It is obviously used to add a new value.

#### **Show in Iframe** [#](https://gudhub.com/docs/gh-elements/link/#show-in-iframe)

The second setting is also the switch that is responsible for the additional feature. Namely, when it is enabled, the link's website will be displayed in a small window below the input field.

> Some sites cannot be displayed here because they do not allow it.

![Using Iframe](https://bitbucket.org/AAtlas/gudhub-documentation/raw/master/Gh_Elements/gh-elements/link-show-in-iframe.gif "Show in Iframe")

In this window, all the functionality of the entered site will be available. But its default size is often too small for this. You can change it using [certain settings](#iframe-width-and-height) in the [Element Style](#element-style) options.

![Using Iframe for multiple links](https://bitbucket.org/AAtlas/gudhub-documentation/raw/master/Gh_Elements/gh-elements/link-multiple-iframe.gif "Multiple Iframes")

> In case of simultaneous use of the [Multiple](#multiple) and **Show in Iframe**, the **corresponding site** will be displayed **under each of the values separately**.

In general, absolutely all settings and tools that are valid for a single value are available for each value individually in [multiple mode](#multiple). Also, the [custom frame size](#iframe-width-and-height) will be applied to all links.

## Element Style [#](https://gudhub.com/docs/gh-elements/link/#element-style)

The style has only standard options until one of field settings is enabled. About standard set of options you can read in [Setting Overview](https://gudhub.com/docs/understanding-gudhub/gh-elements-structure/setting-overview/) and interpretation types are described [below](#interpretation).

![Style of link element](https://bitbucket.org/AAtlas/gudhub-documentation/raw/master/Gh_Elements/gh-elements/link-element-style.jpg "Link element style")

### General Settings [#](https://gudhub.com/docs/gh-elements/link/#general-settings)

Link element has two special style options. They appear only when iframe is enabled in [field settings](#field-settings).

![General settings of link element](https://bitbucket.org/AAtlas/gudhub-documentation/raw/master/Gh_Elements/gh-elements/link-general-settings.jpg)

| Name | Description |
| :-- | :-- |
| Iframe Width | allows to set the width of [Iframe](#show-in-iframe) |
| Iframe Height | allows to set the height of [Iframe](#show-in-iframe) |

#### **Iframe Width and Height** [#](https://gudhub.com/docs/gh-elements/link/#iframe-width-and-height)

There is a special function that allows you to display the site under the link field in a small frame. You can change its size using 2 settings: **Iframe Width** and **Iframe Height**. They are literally additional settings for [Show in Iframe](#show-in-iframe).

> Both settings **default to pixels** if no other **units are specified**.

The list of measurement units that accept these settings is quite small. This table lists all of them:

| Name | Description |
| :-- | :-- |
| % | works relative to the container where the iframe is located |
| px | the only absolute length; it is used when the entered units are not available for this element |
| vw, vh | works as usual, but the location is shifted relative to the container |

> By default, the **width is 300 pixels** and the **height is 153 px**.

## Filtration [#](https://gudhub.com/docs/gh-elements/link/#filtration)

Link value is very similar to text element one. So, there many filters for its filtering too.

-   [Contains(or)](https://gudhub.com/docs/core-api/filter/contains/)
-   [Contains(and)](https://gudhub.com/docs/core-api/filter/contains/)
-   [Not contains(or)](https://gudhub.com/docs/core-api/filter/contains/)
-   [Not contains(and)](https://gudhub.com/docs/core-api/filter/contains/)
-   [Equals(or)](https://gudhub.com/docs/core-api/filter/equals/)
-   [Equals(and)](https://gudhub.com/docs/core-api/filter/equals/)
-   [Not equals(or)](https://gudhub.com/docs/core-api/filter/equals/)
-   [Not equals(and)](https://gudhub.com/docs/core-api/filter/equals/)
-   [Value](https://gudhub.com/docs/core-api/filter/value/)

## Interpretation [#](https://gudhub.com/docs/gh-elements/link/#interpretation)

Almost all interpretation types allows to follow the entered link. After clicking, the appropriate site will be opened in a new browser tab.

![Types of link interpretation](https://bitbucket.org/AAtlas/gudhub-documentation/raw/master/Gh_Elements/gh-elements/link-interpretation-types.jpg "Link interpretation types")

### Default [#](https://gudhub.com/docs/gh-elements/link/#default)

The default interpretation allows to enter link into field, update and delete it, and displays it as a text.

### Icon [#](https://gudhub.com/docs/gh-elements/link/#icon)

This is the only type of link interpretation that does not allows to follow the entered link. It displays link as an icon.

### Plain Text [#](https://gudhub.com/docs/gh-elements/link/#plain-text)

This is an interpretation type that displays links and allows to follow them after clicking, but does not allows to edit them.

### Short Link [#](https://gudhub.com/docs/gh-elements/link/#short-link)

This interpretation displays only word 'Link' instead of full name but steal allows to open site by clicking on it. In this case, link is uneditable too.

### Value [#](https://gudhub.com/docs/gh-elements/link/#value)

This type displays only the link entered in this field.

## Value Format [#](https://gudhub.com/docs/gh-elements/link/#value-format)

The value of the link element is an entered URL as a string type. For multiple values, URLs are saved separated by commas.

Copy

```json
{
    "field_value": "gudhub.com,example.com"
}
```

## Data Model [#](https://gudhub.com/docs/gh-elements/link/#data-model)

This element has quite small data model.

Copy

```json
{
    "data_model": {
        "interpretation": [],
        "multiple": 0,
        "showIframe": 1
    }
}
```

| Name | Type | Description |
| :-- | :-- | :-- |
| interpretation | `array` | _contains all link interpretations_ |
| multiple | `boolean` | _shows whether the element accepts a multiple value_ |
| showIframe | `boolean` | _shows whether iframe active or not_ |
