miranov25 / RootInteractive

5 stars 12 forks source link

Reduced widget description verbosity #172

Closed pl0xz0rz closed 3 years ago

pl0xz0rz commented 3 years ago

This PR: Makes a non-breaking change to widget description array that makes the "default" and "callback" parameters optional by figuring the value out automatically Refactors functions that make widgets by adding annotations Adds a better error message for out of bounds default value with Select widgets The default value of a Select widget can now also be specified as a string, in this case it uses the default value instead of the default index Fixes a bug that was causing typescript compile errors Relates to #171

miranov25 commented 3 years ago

Test were OK. merging