@quartic/bokehjs
Version:
Interactive, novel data visualization
35 lines (28 loc) • 734 B
text/coffeescript
import * as p from "core/properties"
import {Model} from "../../model"
export class ToolProxy extends Model
# Operates all the tools given only one button
initialize: (options) ->
super(options)
do: () ->
for tool in
tool.trigger('do')
return null
set_active: () ->
for tool in
tool.active =
return null
{
tools: [ p.Array, [] ]
active: [ p.Bool, false ]
tooltip: [ p.String ]
tool_name: [ p.String ]
disabled: [ p.Bool, false ]
event_type: [ p.String ]
icon: [ p.String ]
}
_clicked: () ->
active = .active
.active = not active