Skip to content

Taipy.gui.get user content url

Get a user content URL.

This function can be used if you need to deliver dynamic content to your page: you can create a path at run-time that, when queried, will deliver some user-defined content defined in the on_user_content callback (see the description of the Gui class for more information).

Parameters:

Name Type Description Default
state State

The current user state as received in any callback.

required
path Optional[str]

An optional additional path to the URL.

None
params Optional[Dict[str, str]]

An optional dictionary sent to the on_user_content callback.
These arguments are added as query parameters to the generated URL and converted into strings.

None

Returns:

Type Description
Optional[str]

An URL that, when queried, triggers the on_user_content callback.