Context.js icon indicating copy to clipboard operation
Context.js copied to clipboard

Expose menu data reference to action event and context Object, fixes #7

Open margaritis opened this issue 11 years ago • 2 comments

Option A: using data selection from event (e.data.selection())

action: function(e) {
    e.preventDefault();
    $(e.data.selection()).css('background',$(e.target).attr('data-background'));
}

Option B: using context

context.selection();

margaritis avatar Oct 01 '14 13:10 margaritis

May I kindly vote for merging Konstantinos Margaritis' pull request for Menu data reference #7 . Seems working just fine.

yahyaerturan avatar Oct 17 '14 18:10 yahyaerturan

Konstantinos Margaritis's solution worked perfectly. I respectfully ask that his solution becomes part of base.

briankitt avatar Oct 30 '14 13:10 briankitt