Group fields

The setting field type Group Fields

Arguments

Name

Type

Value

Description

type

string

group

The type of setting

name

string

{field_name}

The unique name will be used in template

label

string

(optional)

The label that appears above of the setting field.

description

string

(optional)

The description that appears above under of the setting field.

tooltip

string

(optional)

The long description that appears on the tooltip when hover on.

value

object

(optional)

The default value will be used for the first time.

options

object

(optional)

{

add_text: string (Custom text for add new),

max: interge (Maximum item)

}

params

object

(required)

List of fields in this group (support group level 2)

on

object

(optional)

Add listener events for setting field

Code example

@schema
{
	"name"		: "Group Fields",
	"author"	: "LayoutHub",
	"website"	: "https://www.LayoutHub.com"
}
@endschema


<div class="sample-demo">

	@include('group')
	
</div>

How it works

Last updated