|
@@ -32,9 +32,9 @@ def more() -> None:
|
|
src = 'https://assets1.lottiefiles.com/datafiles/HN7OcWNnoqje6iXIiZdWzKxvLIbfeCGTmvXmEm1h/data.json'
|
|
src = 'https://assets1.lottiefiles.com/datafiles/HN7OcWNnoqje6iXIiZdWzKxvLIbfeCGTmvXmEm1h/data.json'
|
|
ui.html(f'<lottie-player src="{src}" loop autoplay />').classes('w-full')
|
|
ui.html(f'<lottie-player src="{src}" loop autoplay />').classes('w-full')
|
|
|
|
|
|
- @text_demo('Image Link', '''
|
|
|
|
- Images can link to another page by wrapping it in a [ui.link](https://nicegui.io/documentation/link).
|
|
|
|
|
|
+ @text_demo('Image link', '''
|
|
|
|
+ Images can link to another page by wrapping them in a [ui.link](https://nicegui.io/documentation/link).
|
|
''')
|
|
''')
|
|
def link():
|
|
def link():
|
|
- with ui.link('', 'https://github.com/zauberzeug/nicegui', new_tab=True):
|
|
|
|
|
|
+ with ui.link(target='https://github.com/zauberzeug/nicegui'):
|
|
ui.image('https://picsum.photos/id/41/640/360').classes('w-64')
|
|
ui.image('https://picsum.photos/id/41/640/360').classes('w-64')
|