CssMarginInput
extends WP_Customize_Control
in package
Provide a CSS margin input with 4 dimension input fields (top, right, bottom, left).
It can also be used for padding.
Table of Contents
Properties
Methods
- __construct() : mixed
- C'tor.
- json() : mixed
- Refresh the parameters passed to the JavaScript via JSON.
- render_content() : mixed
- Render empty control (no `input`!) cause it is rendered via frontend. Avoids also `value="Array"` to be printed.
Properties
$dashicon
Used dashicon.
public
string
$dashicon
= 'editor-expand'
$type
Type.
public
string
$type
= 'cssMargin'
Methods
__construct()
C'tor.
public
__construct(WP_Customize_Manager $manager, string $id[, array<string|int, mixed> $args = [] ]) : mixed
Parameters
- $manager : WP_Customize_Manager
- $id : string
- $args : array<string|int, mixed> = []
json()
Refresh the parameters passed to the JavaScript via JSON.
public
json() : mixed
render_content()
Render empty control (no `input`!) cause it is rendered via frontend. Avoids also `value="Array"` to be printed.
protected
render_content() : mixed