Skip to content
This repository has been archived by the owner on Jun 19, 2018. It is now read-only.

Month view : cell click event #270

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

Month view : cell click event #270

vogloblinsky opened this issue Jan 27, 2016 · 2 comments

Comments

@vogloblinsky
Copy link

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
Copy link
Owner

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
Copy link
Author

Nice, thanks, test that ASAP.

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

No branches or pull requests

2 participants