GH-Elements

Email

Email is a string type gh-element with value check. It is one of the most simple elements that do not need extra converting or other operations.

Functional Characteristics

This element is used for entering and sending emails. Paired with the password element, it can work as a login.

Value Format

Email does not accepts no other value than the ones that fit to a regular expression. Values could be either single or multiple. All of them are stored as a string. The multiple ones separated by a comma:

{
    "field_value": "john@dow.com,johana@dow.com"
}

Element Options

Email element does not have unique options and default values. There are only field settings with standard Field Name and Name Space, and one familiar extra option.

Field settings of the email element

Name Description
Multiple allows to add multiple values

Multiple

This is the function that allows to add a few values and display all of them in the one field.

Element Style

Email element style consists of only standard options about that you can read in Setting Overview. And about interpretation read below.

Style of the email element

Data Model

Email has a pretty simple data model. Besides interpretation and multiple, there is a special regular expression.

{
    "data_model": {
        "interpretation": [],
        "multiple": 0,
        "regular_expression": "^[a-z0-9](.?[a-z0-9_-]){0,}@[a-z0-9-]+.([a-z]{1,6}.)?[a-z]{2,6}$"
    }
}
Name Type Description
interpretation array contains all email interpretations
multiple boolean shows whether the element accepts the multiple value
regular_expression string contains a regular expression that checks if the format of the value is correct

Filtration

As a string type data, email can be filtered by:

Interpretation

The current gh-element has only three interpretation types.

Types of email interpretation

Default

The default interpretation type for email element allows to display data in the item, update and delete it.

Plain Text

This type allows to make email value uneditable.

Value

This interpretation types displays the email field value.