Skip to content

ui.links over ui.image #4322

Closed Answered by falkoschindler
Teancum-Q asked this question in Q&A
Discussion options

You must be logged in to vote

Adding the class "all-pointer-events" to every child element might be a bit impracticable.

If I understand correctly, you're trying to create a background image for some container element

with ui.column().classes('w-80 h-80 bg-[url(https://picsum.photos/id/377/640/360)]'):
    ui.link('Google', 'https://www.google.com')
    ui.link('Yahoo', 'https://www.yahoo.com')
    ui.link('Bing', 'https://www.bing.com')

or the whole page

ui.context.client.layout.classes('bg-[url(https://picsum.photos/id/377/1920/1080)] bg-cover bg-center')
ui.link('Google', 'https://www.google.com')
ui.link('Yahoo', 'https://www.yahoo.com')
ui.link('Bing', 'https://www.bing.com')

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Teancum-Q
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants