Skip to content

Releases: zauberzeug/nicegui

v1.3.6

27 Jul 04:01
Compare
Choose a tag to compare

New features and improvements

Bugfixes

Documentation

Development

  • Refactor optional feature handling to preserve signature of ui.plotly etc. (#1266 by @falkoschindler)

v1.3.5

19 Jul 07:39
8206fb2
Compare
Choose a tag to compare

New features and improvements

Bugfixes

v1.3.4

17 Jul 15:58
ec62d76
Compare
Choose a tag to compare

New features and improvements

Bugfixes

Documentation

v1.3.3

15 Jul 06:29
Compare
Choose a tag to compare

Improvements

  • cleanups and refactorings made possible by having Python 3.8 as minimum version (by @falkoschindler)

Bugfixes

  • fixed on-air URL (by @rodja)

v1.3.2

14 Jul 11:42
Compare
Choose a tag to compare

Bugfixes

v1.3.1

14 Jul 05:54
Compare
Choose a tag to compare

Bugfixes

v1.3.0

14 Jul 02:49
Compare
Choose a tag to compare

New features and improvements

Bugfixes

Documentation

  • Add demo for removing default padding with ui.query selector (#1120 by @rodja)

Breaking changes and migration guide

Generic event registration with .on()

The argument passed to the event handler is now of type GenericEventArguments. So instead of

grid.on('cellClicked', lambda msg: ui.label(f'{msg["args"]["data"]["name"]} has been clicked!'))

we access the event arguments like this:

grid.on('cellClicked', lambda e: ui.label(f'{e.args["data"]["name"]} has been clicked!'))

See https://nicegui.io/documentation/generic_events for more information.

Custom Vue components and JavaScript libraries

We radically simplified the API to register custom components and external libraries.
Now you can pass the location of the component and additional libraries as parameter to the derived class:

class CustomElement(ui.element, component='custom_element.js', libraries=['lib/some-library.min.js']):
    super().__init__()
    ...

Note that you don't have to pass a tag to the base initializer. It will be set automatically.
Besides libraries you can specify exposed_libraries (will be added to importmaps) and extra_libraries (will be registered but not automatically requested by that element).
All library parameters support absolute and relative paths (relative to the Python file), either as str or as Path, and support globbing.

Exclude parameter

The exclude parameter of ui.run is gone.
Due to NiceGUI's new dynamic dependency management there is no need to explicitly exclude individual elements.

Python 3.7

With NiceGUI 1.3 we drop support for Python 3.7, which had its end of life on June 27, 2023.

v1.2.24

30 Jun 05:41
Compare
Choose a tag to compare

New features and improvements

Bugfixes

Documentation

Development

v1.2.23

26 Jun 16:28
Compare
Choose a tag to compare

New features and improvements

Bugfixes

Documentation

v1.2.22

24 Jun 03:29
Compare
Choose a tag to compare

New features and improvements

Bugfixes

Development