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
Post a Comment