Skip to main content

nicegui extensions

Project description

nicegui_super_extensions

provide extension features for Nicegui

English  |  简体中文

extensions

markdown

  • powered by vditorvditor, you can see the feature from here

install

pip install nicegui_super_extensions 

how to use it

  1. step 1, load Dependence before page require
from nicegui_super_extensions.markdown_renderer import MarkdownPreViewer, initMarkdownPreViewerDependence
initMarkdownPreViewerDependence()
  1. step 2, create widget and render markdown
md = MarkdownPreViewer().render(markdown)
  1. (optional)step 3, update markdown
md.render(new_markdown)

reconnect_box

  • before

    before

  • after

    after

how to use it

  1. step 1
from nicegui_super_extensions.reconnect_box import set_reconnect_box
  1. step 2
# just can use after page load
set_reconnect_box()
# after page load to use it
app.on_connect(lambda: set_reconnect_box())

reorderable

let an item reorderable in row or column

how to use it

  1. step 1
nicegui_super_extensions.reorderable import ReorderableItem,ReorderableColumn
  1. step 2
with ReorderableColumn() as col:
    with ReorderableItem() as draggable:
        ui.label("Draggable Item 1")

    with ReorderableItem() as draggable:
        ui.label("Draggable Item 2")

    with ReorderableItem() as draggable:
        ui.label("Draggable Item 3")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nicegui_super_extensions-0.0.3.tar.gz (11.6 kB view hashes)

Uploaded Source

Built Distribution

nicegui_super_extensions-0.0.3-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page