samelhusseini / pxt-holidays

A Holiday Card sample target embedding PXT inside a React web app
https://samelhusseini.github.io/pxt-holidays/controller.html
MIT License
40 stars 10 forks source link

Block categories #6

Open ghost opened 5 years ago

ghost commented 5 years ago

How can I show block categories? Most default pxt have block categories, big buttons you click on to see more specific blocks .

samelhusseini commented 5 years ago

Yes, this sample doesn't use categories, but here's how it's done: remove hasCategories: false from pxtarget.json https://github.com/samelhusseini/pxt-holidays/blob/master/pxtarget.json#L54

remove categories: false from main.tsx https://github.com/samelhusseini/pxt-holidays/blob/master/site/src/main.tsx#L212

And for the purposes of this simple demo, I've removed a number of built in categories, you'll want to enable those perhaps here: https://github.com/samelhusseini/pxt-holidays/blob/master/pxtarget.json#L14