Skip to content

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.

2 participants