Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Repeater (New)

Image RemovedImage Added

  • type : 'Repeater'

  • fields : A JSON array of 'fields' JSON objects which can support any properties field types and its attributes. 

  • Refer to Field Types for the attributes of the fields.

    Code Block
    languagejs
    fields : [
        {name : 'value', label : 'Value', required: 'true', type: 'checkbox', options: [{ value: 'true', label: ''}]},
        {name : 'label', label : 'Label', required: 'true', type: 'textfield'}
    ]


  • Refer to Dependency Field Attributes for extra attributes to do show/hide this field based on other field value.

    Thai

    อ้างถึง Dependency Field Attributes สำหรับแอททริบิวพิเศษที่ต้องแสดง / ซ่อนฟิลด์นี้ตามค่าฟิลด์อื่น

  • Refer to Retrieve Properties Value in Plugin - Repeater Field on how to use the value of this field type in the plugin code.

    Thai

    อ้างอิงถึง Retrieve Properties Value in Plugin - Repeater Field เกี่ยวกับวิธีใช้ค่าของฟิลด์ชนิดนี้ในรหัสปลั๊กอิน

...

Code Block
languagejava
Object columnsfields = getProperty("property_name");
if (columnsfields != null) {
    for (Object colObjfieldObj : (Object[]) columnsfields) {
        Map colfield = (Map) colObjfieldObj;
        String col1field1_value = (String) optfield.get("col1field1_key");
        String col2field2_value = (String) optfield.get("col2field2_key");
    }
}

Element Select Box

...