Skip to content
API/StringParamOptions

StringParamOptions

src/types/string-param-options.type.tstype

Options for stringParam().

Property Type Description
default string The value used when the key is absent or empty. Without one, the param’s value is string | undefined.
trim boolean Trim surrounding whitespace when reading. Off by default: a search box whose value is read back from list state would lose the space its user has just typed. Turn it on for lists read only on the server, or trim in the list’s apply.