Genie Discord forum

Author Avatarwerner castro
9/24/2023, 12:32:23 PM

how to add icon in text field ?

Author AvatarPere
9/25/2023, 1:19:40 PM

Can you be a little more specific? Perhaps share an example of what you want to do?

Author Avatarwerner castro
9/25/2023, 2:03:01 PM

I took this example from the quasar website

Author Avatarwerner castro
9/25/2023, 3:47:41 PM

How would this code look with the components in StippleUI?

Author AvatarPere
9/25/2023, 3:53:38 PM

You can use the parse_vue_htmlfunction to go from HTML to Julia code

julia> print(parse_vue_html("""<q-input filled v-model="text" :dense="dense">
               <template v-slot:prepend>
                 <q-icon name="event" />
textfield("", :text, filled = "", dense = :dense,
    template(var"v-slot:prepend" = "",
        icon("event", )
Author AvatarPere
9/25/2023, 3:55:06 PM

note that you'd need to define two reactive vars for textand dense