x\panel\lot\type\field()
Constructs data for the Field component.
Table of Contents
Description
x\panel\lot\type\field(array $value, int|string $key): XML|string;
Field components must be nested in a Fields component. This is the base function used to construct a Field component.
Example
echo x\panel\lot\type\field([
'content' => '<p>This is a field content.</p>',
'description' => 'This is a field description.',
'title' => 'Field'
], 0);
Options
Key | Value | Description |
---|---|---|
0 | false|string | The element name for the HTML class instance. |
1 | string | The element content as a string. This value has the highest priority. If this value is set, then data of content and lot properties will be automatically ignored. |
2 | array | An array of pairs of attribute names and their values to be applied to the element. |
active | bool | Specifies whether the field is enabled; if not set, it has an implicit value of true . |
are | array | - |
as | array | - |
can | array | - |
content | string | - |
decors | array | - |
description | array|string | - |
field | array | - |
fix | bool | - |
flex | bool | - |
has | array | - |
height | array|int|string | - |
hint | array|string | - |
icon | array|string | - |
id | string | - |
is | array | - |
key | int|string | - |
lot | array | - |
name | string | - |
not | array | - |
of | array | - |
pattern | string | - |
skip | bool | - |
stack | float|int | - |
tags | array | - |
text | array|string | - |
title | array|string | - |
type | string | - |
unit | string | - |
value | mixed | - |
values | array | - |
vital | bool | - |
width | array|int|string | - |
with | array | - |
x\panel\lot\type\field\blank()
Constructs data for the Blank-Field component.
x\panel\lot\type\field\blob()
Constructs data for the Blob-Field component.
x\panel\lot\type\field\blobs()
Constructs data for the Blobs-Field component.
x\panel\lot\type\field\button()
Constructs data for the Button-Field component.
x\panel\lot\type\field\buttons()
Constructs data for the Buttons-Field component.
x\panel\lot\type\field\color()
Constructs data for the Color-Field component.
x\panel\lot\type\field\colors()
Constructs data for the Colors-Field component.
x\panel\lot\type\field\content()
Constructs data for the Content-Field component.
x\panel\lot\type\field\date_time()
Constructs data for the Date/Time-Field component.
x\panel\lot\type\field\date()
Constructs data for the Date-Field component.
x\panel\lot\type\field\description()
Constructs data for the Description-Field component.
x\panel\lot\type\field\email()
Constructs data for the Email-Field component.
x\panel\lot\type\field\flex()
Constructs data for the Flex-Field component.
x\panel\lot\type\field\hidden()
Constructs data for the Hidden-Field component.
x\panel\lot\type\field\item()
Constructs data for the Item-Field component.
x\panel\lot\type\field\items()
Constructs data for the Items-Field component.
x\panel\lot\type\field\link()
Constructs data for the Link-Field component.
x\panel\lot\type\field\name()
Constructs data for the Name-Field component.
x\panel\lot\type\field\number()
Constructs data for the Number-Field component.
x\panel\lot\type\field\option()
Constructs data for the Option-Field component.
x\panel\lot\type\field\options()
Constructs data for the Options-Field component.
x\panel\lot\type\field\pass()
Constructs data for the Pass-Field component.
x\panel\lot\type\field\path()
Constructs data for the Path-Field component.
x\panel\lot\type\field\query()
Constructs data for the Query-Field component.
x\panel\lot\type\field\range()
Constructs data for the Range-Field component.
x\panel\lot\type\field\route()
Constructs data for the Route-Field component.
x\panel\lot\type\field\set()
Constructs data for the Set-Field component.
x\panel\lot\type\field\source()
Constructs data for the Source-Field component.
x\panel\lot\type\field\text()
Constructs data for the Text-Field component.
x\panel\lot\type\field\time()
Constructs data for the Time-Field component.
x\panel\lot\type\field\title()
Constructs data for the Title-Field component.
x\panel\lot\type\field\toggle()
TODO
x\panel\lot\type\field\u_r_l()
Constructs data for the URL-Field component.
x\panel\lot\type\field\url()
Alias for x\panel\lot\type\field\u_r_l()
.
x\panel\lot\type\field\version()
Constructs data for the Version-Field component.