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

Added right-click directive and attribute #69

Merged
merged 2 commits into from
Aug 22, 2016

Conversation

Chris0lsen
Copy link
Contributor

I had need of right-click capabilities, so I added a directive locally to MDP to handle this case.

How to use:

  • Declare a function in your controller and assign it to a scope variable. The function should accept the arguments (event,day).
  • Assign this variable to the "right-click" attribute of your multiple-date-picker. Don't include the parentheses in the attribute!

e.g. <multiple-date-picker right-click="myFunction"></multiple-date-picker>

Working plunk: http://plnkr.co/edit/NlPtbdMhFnfe7OMm2d9N?p=preview

@@ -20,7 +20,7 @@ gulp.task('lint-app', function () {
.pipe(jshint.reporter('fail'));
});

gulp.task('uglify', ['lint-app'], function () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove lint-app ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't look carefully at the gulpfile, and didn't see that the task was intended to fail if linting errors were encountered :) I'll add it back in, it was an oversight on my part.

@mgohin mgohin merged commit d2379d6 into arca-computing:master Aug 22, 2016
@mgohin
Copy link
Contributor

mgohin commented Aug 22, 2016

Merged it with some refacts, thanks :)
Available in 2.0.9

@Chris0lsen
Copy link
Contributor Author

Thanks, glad I could help :)

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

Successfully merging this pull request may close these issues.

2 participants