How do parameters work in views
?
character at the end of the URL, followed by a list of key-value pairs separated by the &
character. Each key-value pair is separated by the =
character.
For example: ?key1=value1&key2=value2&key3=value3
id
to filter the results. Check out query parameters for more information.
Table
component to display the results of the query. We have specified the query to use, but we do not have to specify any parameter, as all global parameters are automatically passed to the query.
id
parameter in the URL. For example, if we want to see the friends of the user with id = 1
, we can set the URL to:
parameter=$type:value
Where type
is the type of the parameter, like text
, num
, bool
or date
. Following the previous example, if we want to set the id
parameter as a number, we can set the URL to: