rrousselGit / functional_widget

A code generator to write widgets as function without loosing the benefits of classes.
596 stars 46 forks source link

Two new properties: public and name @ FunctionalWidget #97

Closed doejon closed 2 years ago

doejon commented 3 years ago

In order to allow for custom name, I added the property 'name' to the FunctionalWidget.

Furthermore, private functions were translated into a private widget which can now be exported by using the property 'name'.

For ease of use I also added two new decorators:

@ sWidget <<-- makes private stateless widgets public @ hWidget <<-- makes private hook widgets public