Skip to main content

Attributes

Setting type attributes đây là các giá trị bổ sung giúp định cấu hình các phần tử hoặc điều chỉnh hành vi của chúng theo nhiều cách khác nhau để đáp ứng tiêu chí mà người dùng mong muốn.

Setting

    {
id: "attributes",
type: "attributes",
label: "attributes",
sectionType:'advanced',
default:{}
},

Giao diện

alt

Dữ liệu được trả về dưới dạng :

{settings.attributes}

Output

Entity

  export interface AttributesCustomItem {
id: string;
key: string;
value: string;
}
  export interface AttributeEntity {
id: string;
class: string;
custom?: AttributesCustomItems;
}

Ví dụ

{
"id": "HTML id",
"class": "HTMl classs",
"custom": [
{
"id": "id_1_pn9vfekger",
"value": "Value",
"key": "key"
},
{
"id": "id_2_xk22z29mew",
"value": "value2",
"key": "key 2"
}
]
}