P

Passing Parameters

Sometimes you want to pass additional information to the front-end e.g. a link to a specific product, or some data needed for a button action.

The easiest way to do this is from the Params section in a note's Advanced tab:

Example parameters

Picking parameters up client-side

Parameters are sent in notes.params as {key:value} pairs, making them easy to access either from an SSR script or on the client-side e.g.:

  const search = notes.params.search_text;

Svelte

In svelte, your parameters are automatically available as part of the note object returned from the API in +layout.server.js AND in $page.data.note.params on the client-side.

See Component Support to use these parameters to power Components.


Developers Blog T&Cs Privacy