Creating slot tag and injecting like v-slot #4590
Replies: 1 comment 6 replies
-
|
Hi @lyosonernes, I'm not sure if it is possible to define new slots in Python. But you can use a context manager to achieve a very similar result: #4519 |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Example Code
Description
Hi !
I want to be able to create named slot from nicegui via python.
I tried with ui.element to create a slot tag with a name (https://vuejs.org/guide/components/slots.html) and then use the add_slot function to inject element.
Nothing happens as the slot doesn't change.
Do you have any idea how to support this ?
NiceGUI Version
2.13.0
Python Version
3.12
Browser
Chrome
Operating System
Windows
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions