Need help in the process of creating your own WordPress theme?
Popover option container type.
| Name | Type | Default | Description |
|---|---|---|---|
| icon | string|object |
"nc-cog" |
You can additionally set custom HTML and CSS.
In this case, the icon key should be and object,
where the keys are the are element attribute names.
The
content key will allow to add any html content. |
| title | string |
"" |
Specify popover icon title. |
| size | string |
"medium" |
There are 4 sizes:
-
"small", for small popover.-
"medium", for normal size popover.-
"large", for an extra large popover.-
"auto", popover size is determined by it’s options. |
| placement | string |
"top-center" |
List of all available placements:
-
"top-left"-
"top-center"-
"top-right"-
"center-left"-
"center-center"-
"center-right"-
"bottom-left"-
"bottom-center"-
"bottom-right" |
This options renders other options. You need to provide an array of option under the options key.
{
id: "popoverTypography",
type: "popover",
options: [
{
label: "Insert page title",
id: "title",
type: "inputText",
},
{
id: "title-style",
type: "typography",
config: {
fontFamily: false,
}
}
]
}
{
id: "popoverColor",
type: "popover",
config: {
size: "auto",
title: t("Colors"),
icon: {
style: {
backgroundColor: v.color,
}
}
},
options: [
{
id: "color",
type: "colorPicker",
}
]
}