The padlock Element

The element represents a Padlock, i.e. a grid structure on which a pattern can be drawn.

{
    "type": "padlock",
    "key": string,
    "tags": array<string>,
    "version": string,
    "rows": number,
    "columns": number,
    "validator": ?Validator
}

Please note that this element is only used by banks in Poland. Thus integrations that do not include the Polish market do not have to implement the padlock element.

The rows Property

since v1.0.0

The rows property holds the amount of rows inside the padlock.

The columns Property

since v1.0.0

The columns property holds the amount of columns inside the padlock.

Padlock with 5 rows and 5 columns

Padlock with 5 rows and 5 columns

The validator Property

The validator object is the one specified in Client-side Validation. As most of the validation fields work on String values, the only relevant field is the validator.required field, which requires the value to be an non-empty array.

The returned value of the padlock Element

The value sent back to the server for the padlock element is an array that holds the indices of the selected elements sorted according to the order in which they were selected. Please note that elements can be selected multiple times. The indices start at 0 and go up to a maximum value of (rows * columns) - 1.

Padlock with 5 rows, 5 columns and value [0,1,7,13,17,12,7]

Padlock with 5 rows, 5 columns and value [0, 1, 7, 13, 17, 12, 7]

Example

{
    "type": "padlock",
    "key": "padlock1",
    "tags": [],
    "version": "1.0.0",
    "rows": 5,
    "columns": 5
}

Changelog


1.0.0 - 01.02.2019

  • initial version

results matching ""

    No results matching ""