Skip to content

How can the v-model of ElementPlus be implemented in niceGUI #5587

@dzjwwm

Description

@dzjwwm

First Check

  • I added a very descriptive title here.
  • This is not a Q&A. I am sure something is wrong with NiceGUI or its documentation.
  • I used the GitHub search to find a similar issue and came up empty.

Example Code

from nicegui import app, ui

ui.add_body_html('''
    <link rel="stylesheet" href="//unpkg.com/element-plus/dist/index.css" />
    <script defer src="https://unpkg.com/element-plus"></script>
''')
app.config.vue_config_script += '''
    app.use(ElementPlus);
'''

with ui.row(align_items='center'):
    ui.element('el-input').props('v-model="username"')
ui.run(port=8888)

Description

How can the v-model of ElementPlus be implemented in niceGUI
Image

NiceGUI Version

3.2.0

Python Version

Python 3.10.18

Browser

Chrome

Operating System

macOS

Additional Context

I want to use the form function of ElementPlus and at the same time need to implement form validation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions