playcanvas / pcui

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

PCUI Examples #228

Closed willeastcott closed 1 year ago

willeastcott commented 1 year ago

Added a set of simple examples for PCUI. Examples are:

I've also added a basic index.html which uses PCUI to create a simple examples browser type application:

pcui-examples

For PCUI developers, the examples are good for:

willeastcott commented 1 year ago

@slimbuck I know the duplication isn't ideal, but a developer can open any example and see how everything works straight away. No jumping between css/js/html files. At first, I did have the css in a common.css file but I moved it back into the html files. If you contrast this with the PlayCanvas Engine Examples Browser, there it's not obvious how to set up a project from scratch. Here, nothing is hidden and I kind of really like that. But totally open to debate on this as there's definitely no solution that is perfect. 😄