Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension library elements access through the Page Builder API #2447

Merged
merged 2 commits into from
Feb 13, 2025

Conversation

FabienLelaquais
Copy link
Member

Add the element entry points to the library package module (and not the library module).

So the way to access library elements becomes:

from taipy.gui import Gui
import taipy.gui.builder as tgb

import extension_library

...

Gui.add_library(extension_library.Library())

with tgb.Page() as page:
    extension_library.element_name(...)

if __name__ == "__main__":
    # Run main app
    Gui(page=page).run()

@FabienLelaquais FabienLelaquais added 🟥 Priority: Critical Must be addressed as soon as possible 💥Malfunction Addresses an identified problem. Gui: Back-End labels Feb 13, 2025
@FabienLelaquais FabienLelaquais self-assigned this Feb 13, 2025
Copy link
Member

@dinhlongviolin1 dinhlongviolin1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@FabienLelaquais FabienLelaquais merged commit cf9a911 into develop Feb 13, 2025
126 checks passed
@FabienLelaquais FabienLelaquais deleted the bug/extension-library-elements-api-exposure branch February 13, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gui: Back-End 💥Malfunction Addresses an identified problem. 🟥 Priority: Critical Must be addressed as soon as possible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants