@quartic/bokehjs
Version:
Interactive, novel data visualization
65 lines (52 loc) • 1.75 kB
text/coffeescript
import "jqrangeslider/jQDateRangeSlider"
import * as p from "core/properties"
import {isObject} from "core/util/types"
import {InputWidget, InputWidgetView} from "./input_widget"
export class DateRangeSliderView extends InputWidgetView
initialize: (options) ->
super(options)
render: () ->
super()
[value_min, value_max] = @model.value
[range_min, range_max] = @model.range
[bounds_min, bounds_max] = @model.bounds
return @
export class DateRangeSlider extends InputWidget
type: "DateRangeSlider"
default_view: DateRangeSliderView
# TODO (bev) types
value: [ p.Any ]
range: [ p.Any ]
bounds: [ p.Any ]
step: [ p.Any, {} ]
enabled: [ p.Bool, true ]
arrows: [ p.Bool, true ]
value_labels: [ p.String, "show" ]
wheel_mode: [ p.Any ]
###
formatter
scales
###
}