Skip to content

Add Attributes with dash #174

Closed Answered by Knio
phneoix asked this question in Q&A
May 15, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You can add attributes like this using a dictionary or the item interface, ie:

b = button(**{'hx-get': '/'})
# or 
b['hx-ext'] = 'ws'

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cj
Comment options

@Knio
Comment options

Answer selected by phneoix
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