quitegreensky / akivymd

A set of fancy widgets for KivyMD
MIT License
40 stars 9 forks source link

Update navigationrail.py #18

Closed JUDE122-MAX closed 3 years ago

JUDE122-MAX commented 3 years ago

In _update(), instead opening by default it will call set_state(). In set_state(), status is validated with two values "open or close". Example usage : in kv language, just add state: "open" or "close"

"open" to open rail and "close" to dismiss rail on entry

Usage example in set_state()

quitegreensky commented 3 years ago

@JUDE122-MAX there is nothing wrong with open and dismiss

JUDE122-MAX commented 3 years ago

When the rail is used It automatically opens but with that set_state the programmer can decide to open it when called or set it to be closed when called On Saturday, June 5, 2021, Sina Namadian @.***> wrote:

Closed #18 https://github.com/quitegreensky/akivymd/pull/18.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/quitegreensky/akivymd/pull/18#event-4846964754, or unsubscribe https://github.com/notifications/unsubscribe-auth/AODV6GDERKIOVZVOEP4AR5DTRJMW7ANCNFSM46BU3WGA .