All Downloads are FREE. Search and download functionalities are using the official Maven repository.

widgets.pbChecklist.pbChecklist.json Maven / Gradle / Ivy

There is a newer version: 1.0.9
Show newest version
{
  "id" : "pbChecklist",
  "name" : "Checklist",
  "type" : "widget",
  "custom" : false,
  "modelVersion" : "2.6",
  "description" : "Set of checkboxes for options. The user selects zero or more",
  "template" : "@pbChecklist.tpl.html",
  "controller" : "@pbChecklist.ctrl.js",
  "properties" : [
    {
      "label" : "Disabled",
      "name" : "disabled",
      "type" : "boolean",
      "defaultValue" : false,
      "bond" : "expression"
    },
    {
      "label" : "Interpret HTML",
      "name" : "allowHTML",
      "help" : "If you choose 'no', HTML code will be escaped instead of being interpreted. If you choose ‘Yes’, this could potentially lead to HTML injections attacks. Please take into account these risks.",
      "type" : "boolean",
      "defaultValue" : false,
      "bond" : "constant"
    },
    {
      "label" : "Inline",
      "name" : "inline",
      "type" : "boolean",
      "defaultValue" : false,
      "bond" : "constant"
    },
    {
      "label" : "Label hidden",
      "name" : "labelHidden",
      "type" : "boolean",
      "defaultValue" : false,
      "bond" : "constant"
    },
    {
      "label" : "Label",
      "name" : "label",
      "showFor" : "properties.labelHidden.value === false",
      "type" : "text",
      "defaultValue" : "Default label",
      "bond" : "interpolation"
    },
    {
      "label" : "Label position",
      "name" : "labelPosition",
      "showFor" : "properties.labelHidden.value === false",
      "type" : "choice",
      "defaultValue" : "top",
      "choiceValues" : [
        "left",
        "top"
      ],
      "bond" : "constant"
    },
    {
      "label" : "Label width",
      "name" : "labelWidth",
      "showFor" : "properties.labelHidden.value === false",
      "type" : "integer",
      "defaultValue" : 4,
      "bond" : "constant",
      "constraints" : {
        "min" : "1",
        "max" : "12"
      }
    },
    {
      "label" : "Available values",
      "name" : "availableValues",
      "caption" : "Comma-separated list or bound an array data",
      "help" : "Can be a list of objects. Use 'Displayed key' to refine options and 'Returned key' to refine selections",
      "type" : "collection",
      "defaultValue" : [
        "green",
        "red",
        "blue"
      ],
      "bond" : "expression"
    },
    {
      "label" : "Displayed key",
      "name" : "displayedKey",
      "help" : "The name of the key to use as label. Can be empty",
      "type" : "text",
      "bond" : "expression"
    },
    {
      "label" : "Returned key",
      "name" : "returnedKey",
      "caption" : "Value must be unique",
      "help" : "The name of the key to use as value. Leave it empty for whole object",
      "type" : "text",
      "bond" : "expression"
    },
    {
      "label" : "Selected values",
      "name" : "selectedValues",
      "type" : "text",
      "bond" : "variable"
    }
  ],
  "assets" : [
    {
      "id" : "030EAB0F7CC04BD1C4411846C79CB2A1",
      "name" : "checklist.css",
      "type" : "css",
      "order" : 1,
      "external" : false
    }
  ],
  "requiredModules" : [ ],
  "webResources" : [ ],
  "icon" : "",
  "order" : 7,
  "hasHelp" : false
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy