Number

The setting field type Number Slider

Arguments

Name

Type

Value

Description

type

string

number_slider

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

number

(optional)

The default value will be used for the first time.

options

object

(optional)

{

units: array() // ['px', '%', 'rem']

}

on

object

(optional)

Add listener events for setting field (Supported all event )

Code example

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


<div class="sample-demo">
	
	<span style="font-size: @attr(section.settings.size)">The sample text</span>
	
</div>

Last updated