Comments (4)
Use the day-click
callback to choose to select the date or not.
html
<multiple-date-picker day-click="selectDayIfPossible" highlight-days="highlightDays"/>
js
$scope. selectDayIfPossible = function(event, date) {
event.preventDefault() // prevent the select to happen
if(canSelect()){ //check if user can select this date
date.selected = !date.selected
}
}
$scope.highlightDays = [
{date: YOUR_DATE, css: 'mySelectableClass', selectable: true},
];
Then change the css to show dates with default css as not selectable and add css for .picker-day.mySelectableClass
(check the example Highlight-days in the demo page)
from multipledatepicker.
Thanks. That does give me a solution.
But now there is another issue, I am not able to 'highlight-days', although I am using the exact procedure specified here : http://arca-computing.github.io/MultipleDatePicker/
None of the specified days is highlighted. Can I get a Plunker/Fiddle for any example? Thanks in advance!
from multipledatepicker.
Can you show me your code ? (html, js, css)
We can work on it on a plunkr, would be easy to spot the error together
from multipledatepicker.
I have worked around on the issue and got what I wanted for now. Will get
in touch if I see a problem again!
On Tue, Aug 11, 2015 at 1:06 PM, Maelig [email protected] wrote:
Can you show me your code ? (html, js, css)
We can work on it on a plunkr, would be easy to spot the error together—
Reply to this email directly or view it on GitHub
#26 (comment)
.
from multipledatepicker.
Related Issues (20)
- Select a day by code HOT 8
- Need option to select dates by range HOT 1
- getDayClasses function on Ipad HOT 3
- Cant disable list of particular date HOT 2
- Can you please provide any syntax or snippet for selecting dates by range HOT 1
- Adding an ID to a date object and persisting it when day is pushed to ng-model HOT 6
- Can you put a space to separate the month from the year? HOT 1
- is there any feature like day view and week view??can i add event to particular date ??if so how can i show that event to user? HOT 1
- enable-select-month="true" is not working HOT 1
- How to clear existing value in date picker HOT 3
- How to clear existing selected multi datepicker date in React JS HOT 2
- Exceptions while adding basic datepicker HOT 2
- week-days-off from js HOT 7
- "month" change does not affect selected month. HOT 13
- How skip highlights day HOT 1
- Help needed..how do i push dates in new array? HOT 11
- How can I display (with text) the dates that are selected? HOT 4
- remove date HOT 3
- Get the value HOT 1
- Limiting the ammount of days user can select. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multipledatepicker.