Skip to content

taipy.gui.Partial

Bases: _Page

Re-usable Page content.

Partials are used when you need to use a partial page content in different and not related pages. This allows not to have to repeat yourself when creating your page templates.

Visual elements such as part, dialog or pane can use Partials.

Note that Partial has no constructor (no __init__() method): to create a Partial, you must call the Gui.add_partial() function.

Partials can be really handy if you want to modify a section of a page: the update_content() method dynamically update pages that make use of this Partial therefore making it easy to change the content of any page, at any moment.

update_content(state, content)

Update partial content.

Parameters:

Name Type Description Default
state State

The current user state as received in any callback.

required
content str

The new content to use and display.

required