Use beforeShow option.

On Wed, Aug 20, 2014 at 10:30 AM, Андрей Скрыпник <[email protected]>
wrote:

> Hi, i have next question. I need to disable dates in Datepicker object
> dynamically. I know that exist next method:
>
>   $scope.disabled = function(date, mode)
>
> but as i understood it work just when page is loading.
>
> I need that it work by next scheme for example:
>
> 1. I open site
> 2. click button
> 3. Make request to server and receive an array of dates to be disabled
> 4. showed Modal dialog with Datepicker and disabled received dates in it
>
> so after i received array of dates what should i call on Datepicker to
> re-init it ?
> How to do it properly ?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Rishi Tandon*
Pearson Learning Technology Group

Mobile: (310) 926-9032

Pearson
Always Learning
Learn more at www.pearson.com

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to