Exporting a Function

Inline Functions can only be used in the application where they were created. To use the Function in other applications, you can export it to a library function.

Select the Function you want to add to the library and click Export.
Go to the Functions section, the new function will be available in the list.

Now 2 additional fields are available - Schema and Modules.

Modules
This allows you to connect external libraries for the function to work. You can specify a link to github to connect the library's source code. Supported formats are:

[<@scope>/]<pkg>
[<@scope>/]<pkg>
[<@scope>/]<pkg>@<tag>
[<@scope>/]<pkg>@<version>
[<@scope>/]<pkg>@<version range>
<git:// url>
<github username>/<github project>

Schema
Here you can set the function parameters as a json schema.

{
  "uiSchema": {
    "rules": {
      "ui:options": {
        "orderable": false
      },
      "items": {
        "field": {
          "ui:help": "The field that you would like to add",
          "ui:placeholder": "row.field"
        },
        "value": {
          "ui:help": "Specified data",
          "ui:placeholder": "This is a description"
        }
      }
    }
  },
  "type": "object",
  "properties": {
    "rules": {
      "type": "array",
      "title": "Rules",
      "description": "Field Names below will be used to keep specified data",
      "items": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "title": "Field"
          },
          "value": {
            "type": "string",
            "title": "Field value"
          }
        }
      }
    }
  }
}

Platform uses React-JsonSchema-Form for generating a React form based on a JSON Schema. All of parameters and examples are available at react-jsonschema-form