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

Added callbacks token un/selection events #776

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rapito
Copy link

@rapito rapito commented May 13, 2015

Token Selection Change Event

For ease of access and rapid development, I've added a callback feature to be triggered on selection change event of tokens.

  • Added onSelectedToken callback function to be passed as a setting: Called when any token is selected.
  • Added onUnselectedToken callback function to be passed as a setting: Called when any previously selected token loses focus.
  • Added Demo to demo.html.
  • Method Paramater signature for both callbacks is (element, tokenData):
    • element: DOMElement of the un/selected token.
    • tokenData: Data Object bound to un/selected token.

@loopj loopj force-pushed the master branch 2 times, most recently from fd2316b to 8a8390e Compare August 3, 2023 06:06
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.

1 participant