Git Product home page Git Product logo

jquery-ui-timeslider's Introduction

jQuery UI Time Slider Plugin

This plugin adds some functionality on top of the jQuery UI Slider widget so that it can easily be used to select times.

Options:

  • sliderOptions: use this to set the default jQuery UI slider options
  • errorMessage: Selector for the element that will contain the error message if the range is over 24 hours
  • timeDisplay: Selector for the element that will contain the current selected time
  • submitButton: Selector for the element that will act as submit Button
  • clickSubmit: The function that will be executed when the submitButton is clicked
  • inputsContainer: Selector for placing inputs for start time and end time in it. Works if addInputs is true. default: '.timesliderInputsContainer'
  • addInputs: if true, will add inputs for start and end dates in the element defined by property inputsContainer. default: false
    • clockFormat: formats for getTime(). Available 12, 24. default: 12
      • startTime: startTime and endTime values will override sliderOptions.values. Format: "hh:mm". default: null
      • endTime: startTime and endTime values will override sliderOptions.values. Format: "hh:mm". default: null

Methods:

  • getTime: .timeslider('getTime', value) Takes an int and converts it to a Date and returns the time in hours and minutes

.timeslider uses .slider so you can still access all of the base properties

jquery-ui-timeslider's People

Contributors

adlerdias avatar antongorodezkiy avatar marcneuwirth avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.