Set the policy interface parameters

Author: The Little Dream, Created: 2017-12-28 16:28:33, Updated: 2020-03-20 12:41:36

Set the policy interface parameters

  • 5 different interface parameters

    img

    Interface parameters, in the policy edit page, in the code edit area, below the policy parameters area, in the policy settings area, below the policy parameters area, below the policy parameters area, below the policy parameters area, below the policy parameters area, below the policy parameters area, below the policy parameters area, below the policy parameters area, below the policy parameters area, below the policy parameters area, below the policy parameters area, below the policy parameters area, below the policy parameters area. Interface parameters exist in the policy code as global variables, i.e. they can be modified in the code. Interface parameter The name of the variable in the policy code: number, string, combox, bool, secretString. Description Options: Interface Parameters The name on the policy interface. Note Options: Detailed description of the interface parameters, which will be displayed when the mouse remains on the interface parameters. Type Options: The type of this interface parameter, described in detail below. Default Options: The default value of this interface parameter.

  • The Table

    Variable Describe Notes Types The default
    number Type of value Notes Numbers (number) 1
    string String Notes String (s) HelloWorld
    combox Draw box Notes Drag box ((selected)) 1|2|3
    bool Select Notes Bull type ((true/false)) true
    secretString Encrypted strings Notes Encrypted string passWord
  • Numerical type

    • javascript

      Variable number Type: number

  • String

    • javascript

      Variable string Type: String Default values are entered without quotation marks, and are entered as character processing.

  • Draw box

    • javascript

      Variable combox type: number Default value: in the form 1 2 3 The combox variable itself is a numeric value, representing the target index selected by the drop-down control. The first drop-down window is 1, the index value is 0, when this window is selected, the combox value is 0, and so on, the index of drop-down window 2 is 1... The parameter is the first drop-down box by default.img

  • Select a column (Boolean)

    • javascript

      Variable bool type Boolean value

      If selected, the variable bool is true, if not selected, the variable bool is false.

  • Encrypted strings

    • javascript

      Variable secretString type: String The use of strings is similar. The encrypted string is sent encrypted and not transmitted in plain text. Encryption strings, modified to trigger the inventor's quantized security authentication mechanism, will require the input of password verification.

img

  • Parameter dependencies and settings

    You can set one parameter so that the other parameter is selected based on that parameter to achieve display and hide. For example, we set the parameter numberA, which is a numeric type. We let numberA decide whether to show or hide based on one of the parameters: isShowA (Boolean type).

    img

    This will allow you to test the results of the test in a retest mode.

    img

    The number A is hidden when the isShowA parameter is not set.

    We're going to select isShowA.

    Displayed:

    img

    This is how the hidden and the visible are achieved.

  • Policy interface parameters, interactive controls, parameters on the template, group functions

    In a policy, the following function can be used if you want to display a parameter grouping.

    For example, the interface parameters for a test policy are set to:

    img

    Now the order of the parameters is from top to bottom, 1 to 4, and if I want to split the 1 and 4 parameters into a group that is displayed on the interface, I can drag it.imgLet the fourth parameter move to this position under the first parameter.

    img

    The first and fourth parameters have already been put together, and then we just make a slight modification to the description of the parameters, so that the system can group the parameters when the system is parsed.

    Input of position starting in parameter description (? first group)

    img

    The results are as follows:

    img

    All parameters are grouped into the first group. This is because if there is a description of the parameter that is " (?) " then a grouping is generated and all the parameters after that parameter are grouped together. Unless there is a new " (?) " grouping setting in the description of the parameter, then a new grouping is generated.

    For example, the addition of a subgroup name is also the first group of the group:

    img

    Displayed:

    img

    Similarly, the " (?) " grouping setting in the description of interactive controls can also be used to group controls:

    img


More

tiemuerCan only use jss?

JIn the example above, we have a number A@isShowA, so ask isShowA how can we determine the two conditions here?

tiemuerGood. Thank you.

The Little DreamSupport for JS/PY/C++

JThank you.

The Little DreamThere can only be one yes or no.