Checkbox list

The setting field type Checkbox List

Arguments

Name

Type

Value

Description

type

string

checkbox

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

string

(optional)

The default value will be used for the first time.

options

object

required

{

value_01: 'Label 01',

value_02: 'Label 02',

value_03: 'Label 03'

}

on

object

(optional)

Add listener events for setting field (Supported all event )

Code example

@schema
{
	"name"		: "Checkbox List",
	"author"	: "LayoutHub Team",
	"website"	: "https://www.LayoutHub.com"
}
@endschema


<div class="sample-demo">
	<ul>
	@for (section.settings.items as item)
		<li>@print(item)</li>
	@elsefor
		<p>No items!</p>
	@endelse
	</ul>
</div>

How it works

Last updated