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

Have part or dialog centered to the element clicked #2293

Open
1 of 7 tasks
FlorianJacta opened this issue Nov 29, 2024 · 7 comments
Open
1 of 7 tasks

Have part or dialog centered to the element clicked #2293

FlorianJacta opened this issue Nov 29, 2024 · 7 comments
Assignees
Labels
🖰 GUI Related to GUI ✨New feature 🟨 Priority: Medium Not blocking but should be addressed 🔒 Staff only Can only be assigned to the Taipy R&D team

Comments

@FlorianJacta
Copy link
Member

FlorianJacta commented Nov 29, 2024

Description

Here, I have clicked on an icon and I have a dropdown menu of labels next to where I clicked:
image

Here, I have clicked on icon and I see a dialog/part showing up next to where I clicked:

image

I want to do that generically to put anything in this part. If I click somewhere else, this dialog should disappear.

Acceptance Criteria

  • If applicable, a new demo code is provided to show the new feature in action.
  • Integration tests exhibiting how the functionality works are added.
  • Any new code is covered by a unit tested.
  • Check code coverage is at least 90%.
  • Related issue(s) in taipy-doc are created for documentation and Release Notes are updated.

Code of Conduct

  • I have checked the existing issues.
  • I am willing to work on this issue (optional)
@FlorianJacta FlorianJacta added ✨New feature 🖰 GUI Related to GUI 🟨 Priority: Medium Not blocking but should be addressed labels Nov 29, 2024
@FredLL-Avaiga
Copy link
Member

it'a dialog then
But you want to position it relatively to another component.
Would it be acceptable to provide the id of the other component ? (would need to be defined in the other comp and dynamically in the dialog)

@jrobinAV
Copy link
Member

This relates slightly to another issue: #2252. By the way, a contributor has proposed to help with it.

@FlorianJacta
Copy link
Member Author

@FredLL-Avaiga That works for me. What do you mean by dynamically?

@FredLL-Avaiga
Copy link
Member

FredLL-Avaiga commented Dec 2, 2024

I mean that you can change the id to which the dialog is related.
Maybe we should make it a selector so that you can relate to any component (while still supporting the id for simplicity).

@FlorianJacta
Copy link
Member Author

Ok, I agree that the id should be dynamic. Now, I don't understand the part about the selector 😆

@FredLL-Avaiga
Copy link
Member

The id is a string that allows to locate a component on a page and position a dialog based on it.
this string could also be treated as a CSS selector to locate components that don't have an id.

@FlorianJacta
Copy link
Member Author

Got it, thanks!

@jrobinAV jrobinAV added the 🔒 Staff only Can only be assigned to the Taipy R&D team label Dec 2, 2024
@FredLL-Avaiga FredLL-Avaiga self-assigned this Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖰 GUI Related to GUI ✨New feature 🟨 Priority: Medium Not blocking but should be addressed 🔒 Staff only Can only be assigned to the Taipy R&D team
Projects
None yet
Development

No branches or pull requests

3 participants