Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Dec 17, 2024
1 parent 95795bc commit d7ddc9a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions panel/models/column.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {ModelEvent, server_event} from "@bokehjs/core/bokeh_events"
import {div} from "@bokehjs/core/dom"
import type * as p from "@bokehjs/core/properties"
import type {Attrs} from "@bokehjs/core/types"
import type {EventCallback} from "@bokehjs/model"
import {Column as BkColumn, ColumnView as BkColumnView} from "@bokehjs/models/layouts/column"

Expand All @@ -12,7 +13,7 @@ export class ScrollButtonClick extends ModelEvent {

@server_event("scroll_to")
export class ScrollToEvent extends ModelEvent {
constructor(readonly model: ReactiveESM, readonly data: any) {
constructor(readonly model: Column, readonly index: any) {
super()
this.index = index
this.origin = model
Expand All @@ -22,8 +23,8 @@ export class ScrollToEvent extends ModelEvent {
return {model: this.origin, index: this.index}
}

static overridefrom_values(values: object) {
const {model, index} = values as {model: ReactiveESM, index: any}
static override from_values(values: object) {
const {model, index} = values as {model: Column, index: any}
return new ScrollToEvent(model, index)
}
}
Expand Down

0 comments on commit d7ddc9a

Please sign in to comment.