Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Last improvements of the Page Builder API #921

Closed
4 tasks
FabienLelaquais opened this issue Sep 20, 2023 · 0 comments
Closed
4 tasks

Last improvements of the Page Builder API #921

FabienLelaquais opened this issue Sep 20, 2023 · 0 comments
Assignees
Labels
Gui: Back-End Related to the back-end side of Taipy GUI. 📈 Improvement Improvement of a feature. 🟧 Priority: High Stalls work on the project or its dependents

Comments

@FabienLelaquais
Copy link
Member

Description

A few things

  • The renderers module is now visible, and exposes the classes BlockElementApi, ClassApi, ControlElementApi, DefaultBlockElement, and ElementApi.

    All these must be hidden. The one thing we want to document is the taipy.gui.Builder module, where the entirety of the Reference documentation will be stored.
  • When invoking an element constructor (taipy.gui.Builder.element_name()), it would be very valuable to make the first parameter the default property of the element. For example, a text element could be instantiated with tgb.text("The text").
  • We might want to add an html class to include raw HTML content:
    • tgb.html("h1", text="My title") would produce <h1>My title</h1>.
    •  with tgb.html("div"):
           tgb.text("The text")
      
      would produce <div><span ...>The text</span></div>
      This API would have an attributes parameter holding a dict that is used to set the element's HTML attributes.

Acceptance Criteria

  • Ensure new code is unit tested, and check code coverage is at least 90%
@FabienLelaquais FabienLelaquais added 📈 Improvement Improvement of a feature. Gui: Back-End Related to the back-end side of Taipy GUI. 🟧 Priority: High Stalls work on the project or its dependents labels Sep 20, 2023
@dinhlongviolin1 dinhlongviolin1 self-assigned this Sep 20, 2023
dinhlongviolin1 added a commit that referenced this issue Oct 3, 2023
* make renderer private

* allow default property

* add html support

* add tests

* per Fred

* fix add_library invocation error

* simplify fixes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Gui: Back-End Related to the back-end side of Taipy GUI. 📈 Improvement Improvement of a feature. 🟧 Priority: High Stalls work on the project or its dependents
Projects
None yet
Development

No branches or pull requests

2 participants