Skip to content

Commit

Permalink
Wire up DataTable for streaming and patching events (#5733)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryevdv committed Jan 15, 2017
1 parent 98074ed commit 8050976
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bokehjs/src/coffee/models/widgets/data_table.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ export class DataTableView extends WidgetView
super(options)
wait_for_element(@el, () => @render())
@listenTo(@model, 'change', () => @render())
source = @model.source
@listenTo(source, 'change:data', () => @updateGrid())
@listenTo(source, 'change:selected', () => @updateSelection())
@listenTo(@model.source, 'change:data', () => @updateGrid())
@listenTo(@model.source, 'stream', () => @updateGrid())
@listenTo(@model.source, 'patch', () => @updateGrid())
@listenTo(@model.source, 'change:selected', () => @updateSelection())

updateGrid: () ->
@data.constructor(@model.source)
Expand Down

0 comments on commit 8050976

Please sign in to comment.