Skip to content
This repository has been archived by the owner. It is now read-only.

Month view : cell click event #270

Closed
vogloblinsky opened this Issue Jan 27, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@vogloblinsky
Copy link

vogloblinsky commented Jan 27, 2016

Hi,

I need for one project to display the current selected day in month view.
I can get it with "Timespan click", but it will be nice to display a feedback for the user with a border on the cell or anything else.

Regards

@mattlewis92

This comment has been minimized.

Copy link
Owner

mattlewis92 commented Jan 27, 2016

I've just pushed 0.18.4 which should let you do this.
on-timespan-click="cellClicked(calendarCell)"

var previousCell;
$scope.cellClicked = function(cell) {
  if (previousCell) {
    delete previousCell.cssClass;
  }
  cell.cssClass = 'selected'; // then style it with CSS.
  previousCell = cell;
};

Hope this helps! 😄

@vogloblinsky

This comment has been minimized.

Copy link
Author

vogloblinsky commented Jan 27, 2016

Nice, thanks, test that ASAP.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.