playcanvas / pcui

UI component library for web-based tools
http://playcanvas.github.io/pcui
MIT License
664 stars 62 forks source link

Remove the defaultArgs property from components #265

Closed ellthompson closed 1 year ago

ellthompson commented 1 year ago

The current defaultArgs implementation in components can be confusing to interpret, it requires the inheritance of default args from parent classes and requires combination with user supplied arguments in the constructor. This can be replaced by supplying the necessary class properties with fallback values.