Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block categories #6

Open
ghost opened this issue Dec 11, 2018 · 1 comment
Open

Block categories #6

ghost opened this issue Dec 11, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 11, 2018

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

@samelhusseini
Copy link
Owner

samelhusseini commented Dec 11, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant