hedron-crystal / hedron

An extendable UI library in Crystal, with markup capabilities.
MIT License
85 stars 5 forks source link

Make custom widgets more intuitive #7

Open hanyuone opened 6 years ago

hanyuone commented 6 years ago

Currently, to make a custom widget, you have to:

A problem that I've encountered when implementing button_tab is that the index won't update - since @display is stored as a variable, I have to manually update @display's properties. This is kind of a pain.

This issue is placed here to brainstorm suggestions as to how implementing custom widgets could be made easier for people to use.

EDIT: If anyone can make a custom app or two using HDML and custom widgets and link them to this repository, that would be great!