Skip to content

Commit

Permalink
Document isObjectSelectable
Browse files Browse the repository at this point in the history
  • Loading branch information
mortendevold committed Apr 29, 2024
1 parent b603fe5 commit 4797bd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ const eventManagerSelectModeConfig: Required<EventManagerSelectModeConfigOptions
showCategory: true,
showChannel: true,
showActionHint: true
}
},
isObjectSelectable: (_object) => true
}

// Set up a complete Chart Designer config - normal mode
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ export interface EventManagerSelectModeConfigOptions extends BaseEventManagerCon
mode: 'select'
maxSelectedObjects?: SelectionLimiter
numberOfPlacesToSelect?: number
isObjectSelectable?: (object: SelectableObject) => boolean
selectedObjects?: (string | SelectedObject | SelectedGA)[]
selectionBy?: 'places' | 'objects'
ticketTypes?: TicketTypeJsonWithoutPrice[]
Expand Down

0 comments on commit 4797bd1

Please sign in to comment.