Skip to content

Param

param use for define external parameters for Navi Stream, external parameters can be passed in when instantiating, thus changing the behavior of the script.

Syntax

nvs

Meta decorator

Use @meta decorator to define the options of this parameter.

Value Range

NOTE: Only number type parameters can specify a range.

The following code specifies that the value of parameter a must be greater than or equal to 50 and less than or equal to 100, default is 50.

nvs

choices

choices is used to specify the available values for a parameter (Like a enum).

The following code specifies that the value of parameter a must be one of 3, 6, 9, default is 3.

nvs

You can also specify a name for each choice, which is used to give users a clearer parameter description in the client.

nvs

title

以下语句为 length 参数指定了标题 长度

nvs