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

widgets.pbCurrencyInput.pbCurrencyInput.json Maven / Gradle / Ivy

There is a newer version: 1.0.9
Show newest version
{
  "id" : "pbCurrencyInput",
  "name" : "Currency Input",
  "type" : "widget",
  "custom" : false,
  "modelVersion" : "2.6",
  "description" : "Field where the user can enter information with a currency formatting.",
  "template" : "@pbCurrencyInput.tpl.html",
  "controller" : "@pbCurrencyInput.ctrl.js",
  "properties" : [
    {
      "label" : "Required",
      "name" : "required",
      "help" : "In the context of a form container, use $form.$invalid as a Boolean to check form validity in a widget property",
      "type" : "boolean",
      "defaultValue" : false,
      "bond" : "expression"
    },
    {
      "label" : "Read-only",
      "name" : "readOnly",
      "type" : "boolean",
      "defaultValue" : false,
      "bond" : "expression"
    },
    {
      "label" : "Interpret HTML in label",
      "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.",
      "showFor" : "properties.labelHidden.value === false",
      "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" : "Amount",
      "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" : "Placeholder",
      "name" : "placeholder",
      "help" : "Short hint that describes the expected value",
      "type" : "text",
      "bond" : "interpolation"
    },
    {
      "label" : "Value",
      "name" : "value",
      "caption" : "Any variable: myData or myData.attribute",
      "help" : "Numerical value entered by user input formatted as float number. A rounding is applied.",
      "type" : "text",
      "bond" : "variable"
    },
    {
      "label" : "Min value",
      "name" : "min",
      "help" : "In the context of a form container, use $form.$invalid as a Boolean to check form validity in a widget property",
      "type" : "integer",
      "bond" : "expression"
    },
    {
      "label" : "Max value",
      "name" : "max",
      "help" : "In the context of a form container, use $form.$invalid as a Boolean to check form validity in a widget property",
      "type" : "integer",
      "bond" : "expression"
    },
    {
      "label" : "Symbol",
      "name" : "maskCurrency",
      "help" : "Can be any string, hence enabling any symbol (€, $, …) or any abbreviation (EUR, USD, …). Numeric characters will be removed on display",
      "type" : "text",
      "defaultValue" : "€",
      "bond" : "expression"
    },
    {
      "label" : "Symbol position",
      "name" : "orientation",
      "help" : "The position of the currency symbol",
      "type" : "choice",
      "defaultValue" : "right",
      "choiceValues" : [
        "left",
        "right"
      ],
      "bond" : "expression"
    },
    {
      "label" : "Symbol indentation",
      "name" : "indentation",
      "help" : "Defines character(s) separation between currency sign and value",
      "type" : "choice",
      "defaultValue" : "none",
      "choiceValues" : [
        "none",
        "whitespace"
      ],
      "bond" : "expression"
    },
    {
      "label" : "Number of decimal",
      "name" : "decimalSize",
      "help" : "Number of digits after the decimal separator",
      "type" : "integer",
      "defaultValue" : 2,
      "bond" : "expression",
      "constraints" : {
        "min" : "0",
        "max" : "3"
      }
    },
    {
      "label" : "Decimal separator",
      "name" : "decimal",
      "help" : "The character separator to the fraction",
      "type" : "choice",
      "defaultValue" : ",",
      "choiceValues" : [
        ",",
        "."
      ],
      "bond" : "expression"
    },
    {
      "label" : "Thousands separator",
      "name" : "group",
      "help" : "The character used as the thousands separator",
      "type" : "choice",
      "defaultValue" : "whitespace",
      "choiceValues" : [
        "none",
        "whitespace",
        ",",
        "."
      ],
      "bond" : "expression"
    }
  ],
  "assets" : [
    {
      "id" : "dad0d91e-4b99-4b12-afd5-a53aecf846aa",
      "name" : "angularjs-currency-input-mask-1.1.7-patched.min.js",
      "type" : "js",
      "order" : 0,
      "external" : false
    }
  ],
  "requiredModules" : [
    "cur.$mask"
  ],
  "webResources" : [ ],
  "icon" : "            $  ",
  "order" : 1,
  "hasHelp" : false
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy