Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

How to change eventClick color ? #512

Open
estellederrien opened this issue Jun 28, 2017 · 0 comments
Open

How to change eventClick color ? #512

estellederrien opened this issue Jun 28, 2017 · 0 comments

Comments

@estellederrien
Copy link

estellederrien commented Jun 28, 2017

Hello,

I'm able to change the event color like this 👍

 /* config object */
    $scope.uiConfig = {
      calendar:{
        height: 650,
        editable: true,
        header:{
          left: 'title',
          center: '',
          right: 'today prev,next'
        },
        eventClick: $scope.alertOnEventClick,
        eventDrop: $scope.alertOnDrop,
        eventResize: $scope.alertOnResize,
        eventRender: $scope.eventRender,
		monthNames: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Aout', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
		dayNamesShort: ["Dim", "Lun", "Mar", "Merc", "Jeud", "Vend", "Same"],
		dayClick: $scope.newrendezVous
      
      }
    };
	
$scope.alertOnEventClick = function( item, jsEvent, view){
       $(this).css('background-color', 'grey');
	$(this).delay(2000).queue(function(next){$(this).css('background-color', item.color);next();});
 }

But when I click another event, the first event stay grey and doesnt get his initial color... How could i do please thank you

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant