Home Export Appointment to outlook using Angularjs
Reply: 1

Export Appointment to outlook using Angularjs

Devesh Khosla
1#
Devesh Khosla Published in 2017-11-14 18:13:30Z

I am using addeventatc. As per research i have to use addeventatc.refresh(); after page page loaded because i am using data from api call.It works if i put button on my screen. But not working with loading.

Here website https://www.addevent.com/add-to-calendar-button .

    <tr ng-repeat="y in x.LEAVE_DAYS | orderBy:'LEAVE_DATE'">
                                                <td>
    <span ng-show="test" title="Add to Calendar" class="addeventatc">
    <br />
    <span class="start">{{y.LEAVE_START | date:'M/d/yy h:mm a'}}</span>
    <span class="end">{{y.LEAVE_END | date:'M/d/yy h:mm a'}}</span>
    <span class="timezone">US/Arizona</span>
    <span class="title">Time Approved for {{x.REQ_TYPE}}</span>
    <span class="description">Approved Hours :  {{y.HOURS}}</span>
     </span>
     </td>

I tried as below its work. But i do want to fire this function after my table load on screen.

button type="button" class="btn btn-primary" ng-click="testing(); test=true">&nbsp Exports data</button>

controller

  $scope.testing = function () {
    addeventatc.refresh();
}
Michael Nilsson
2#
Michael Nilsson Reply to 2017-11-15 20:51:17Z

Try adding a timeout function

setTimeout(function(){
   addeventatc.refresh();
}, 200);
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.300184 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO