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

Select days by clicking day-labels #12

Open
bjarnef opened this issue Apr 4, 2016 · 0 comments
Open

Select days by clicking day-labels #12

bjarnef opened this issue Apr 4, 2016 · 0 comments

Comments

@bjarnef
Copy link

bjarnef commented Apr 4, 2016

Make it possible to select days by clicking labels either by use forattribute on label + id on input.

<label for="some-unque-id">Monday</label>
<input type="checkbox" value="1" id="some-unque-id" />

or wrap input inside label:

<label>Monday
    <input type="checkbox" value="1"  />
</label>

For this PR for extending datepicker options in Umbraco, I added a prevalue editor for weekdays: umbraco/Umbraco-CMS#984

https://github.com/bjarnef/Umbraco-CMS/blob/dev-v7-U4-7301/src/Umbraco.Web.UI.Client/src/views/propertyeditors/datepicker/weekdays.prevalues.html

https://github.com/bjarnef/Umbraco-CMS/blob/dev-v7-U4-7301/src/Umbraco.Web.UI.Client/src/views/propertyeditors/datepicker/weekdays.controller.js

Umbraco already use checklist-model, so that is pretty easy :) http://vitalets.github.io/checklist-model/

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

No branches or pull requests

2 participants