WolfgangFahl / nicegui_widgets

nicegui widgets
http://ngdemo.bitplan.com
Apache License 2.0
14 stars 2 forks source link

add tristate module #49

Closed WolfgangFahl closed 6 months ago

WolfgangFahl commented 6 months ago

Feature Request: Addition of Tristate Module to NiceGUI Widgets

Summary

Addition of a new class named Tristate to the NiceGUI widgets project. This class provides a tri-state toggle input component that leverages predefined Unicode icon sets for visual representation, handling state changes entirely within Python without relying on JavaScript logic for state management.

Details

The Tristate component allows users to cycle through three states, each represented by a distinct Unicode icon. It's designed to integrate seamlessly with the existing NiceGUI application structure, offering a reactive UI component that updates its display based on user interactions.

Here are the key features of the Tristate module:

Example Icon Sets for Tristate Module

Implementation Details

The Tristate class should be developed adhering to the following criteria:

References

The Tristate module is inspired by the following resources:

WolfgangFahl commented 6 months ago

grafik