Meteor AutoForm. How to button group for days of week in AutoForm and SimpleSchema -


i want this buttons each day of week. can pick monday , tuesday, no other days.

there's couple of ways (with lots of template code), nothing awesome comes out.

what's simplest simpleschema , autoform possibly work?

here first attempt:

  officedaysofweek: {     // mon,tue,wed,thu,fri,sat,sun - 7 booleans days of week.     type: [boolean],     defaultvalue: [true,false,true,false,false,false,false]   }, 

after that, thought of making sub-schema individual days seemed alot of code in schema , template.

any suggestions? thanks!

mike

as @mark recommended made sub-schema handle this.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -