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

widgets.pbSaveButton.pbSaveButton.json Maven / Gradle / Ivy

There is a newer version: 1.0.9
Show newest version
{
  "id" : "pbSaveButton",
  "name" : "SaveButton",
  "type" : "widget",
  "custom" : false,
  "modelVersion" : "2.6",
  "description" : "Save data to / Load data from LocalStorage.",
  "template" : "@pbSaveButton.tpl.html",
  "controller" : "@pbSaveButton.ctrl.js",
  "properties" : [
    {
      "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" : "Label",
      "name" : "label",
      "type" : "text",
      "defaultValue" : "Save draft",
      "bond" : "interpolation"
    },
    {
      "label" : "Alignment",
      "name" : "alignment",
      "type" : "choice",
      "defaultValue" : "left",
      "choiceValues" : [
        "left",
        "center",
        "right"
      ],
      "bond" : "constant"
    },
    {
      "label" : "Style",
      "name" : "buttonStyle",
      "type" : "choice",
      "defaultValue" : "default",
      "choiceValues" : [
        "default",
        "primary",
        "success",
        "info",
        "warning",
        "danger",
        "link"
      ],
      "bond" : "constant"
    },
    {
      "label" : "Value",
      "name" : "formInput",
      "caption" : "Any variable: myData or myData.attribute.",
      "help" : "Data saved on click. You might bind it to the variable you use to initialize your form, e.g. 'formInput'",
      "type" : "text",
      "defaultValue" : "formInput",
      "bond" : "variable"
    }
  ],
  "assets" : [ ],
  "requiredModules" : [ ],
  "webResources" : [ ],
  "icon" : "",
  "order" : 13,
  "hasHelp" : true
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy