Skip to content

Call slider events #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Call slider events #1

wants to merge 3 commits into from

Conversation

comewalk
Copy link
Contributor

@comewalk comewalk commented Mar 6, 2017

Register callbacks for slider widget of jQuery UI by a caller

Current events are five like below.
https://api.jqueryui.com/slider/#events

  • change
  • create
  • slide
  • start
  • stop

Code sample:

var slider = {
  callback: {
    change: function(e, ui) {
      // do something if you need
    },
    create: function(e, ui) {
      // do something if you need
    },
    slide: function(e, ui) {
      // do something if you need
    },
    start: function(e, ui) {
      // do something if you need
    },
    stop: function(e, ui) {
      // do something if you need
    }
  },
  appendSliderAmountBottom: true,
   hideSliderAmount: false
};
MT.ChartAPI.Build({ graph: config, slider: slider, range: range }).appendTo($('#graph'));

@comewalk comewalk changed the base branch from master to develop March 6, 2017 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant