Background

The setting field type Css Background

Arguments

Name

Type

Value

Description

type

string

css_background

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.

on

object

(optional)

Add listener events for setting field

Code example

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


<div class="sample-demo" style="background: @attr(section.settings.my_bg); padding: 100px;">
	<h1>Sample Text</h1>
</div>

How it works

Last updated