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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -