getAttributesByMarker
الحصول على جميع السمات مع البيانات من مجموعة السمات
AttributesSets.getAttributesByMarker(marker, langCode)
const value = await AttributesSets.getAttributesByMarker('my-marker')
Schema
marker:* string
معرف نصي (علامة) لمجموعة السمات
مثال: 'form'
langCode: string
رمز اللغة
مثال: en_US
تُرجع هذه الطريقة جميع السمات مع البيانات من مجموعة السمات
مثال على النتيجة:
[
{
"type": "list",
"marker": "list1",
"position": 192,
"validators": {
"requiredValidator": {
"strict": true
},
"defaultValueValidator": {
"fieldDefaultValue": 11
}
},
"localizeInfos": {
"title": "My attribute"
},
"listTitles": [
{
"title": "red",
"value": 1,
"position": 1,
"extended": {
"value": null,
"type": null
}
},
{
"title": "yellow",
"value": 2,
"position": 2,
"extended": {
"value": null,
"type": null
}
}
],
"settings": {},
"additionalFields": [
{
"type": "string",
"value": "Your Name",
"marker": "placeholder"
}
]
}
]
Schema
type: string
نوع السمة
مثال: list
marker: string
معرف نصي للسمة (علامة)
Enum: [ string, text, textWithHeader, integer, real, float, dateTime, date, time, file, image, groupOfImages, radioButton, list, button ]
مثال: list1
position: number
رقم الموضع للفرز
مثال: 192
validators: Record<string, any>
مجموعة من المدققين للتحقق من الصحة
مثال:
{
"requiredValidator": {
"strict": true
},
"defaultValueValidator": {
"fieldDefaultValue": 11
}
}
localizeInfos: Record<string, any>
بيانات التوطين لمجموعة (الاسم)
مثال:
{
"title": "My attribute"
}
listTitles Record<string, any>
مصفوفة من القيم (مع بيانات موسعة) لسمات من نوع القائمة و radioButton
مثال:
[
{
"title": "red",
"value": 1,
"position": 1,
"extended": { "value": null, "type": null }
},
{
"title": "yellow",
"value": 2,
"position": 2,
"extended": {
"value": null,
"type": null
}
}
]
settings: Record<string, any>
إعدادات إضافية للسمة (اختياري)
مثال: {}
additionalFields: Record<string, any>
مثال:
[
{
"type": "string",
"value": "Your Name",
"marker": "placeholder"
}
]
مثال: {}