Skip to content

Commit

Permalink
Add missing config option hideSectionsNotForSale (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortendevold authored Oct 10, 2024
1 parent 650c70c commit 9d2e646
Show file tree
Hide file tree
Showing 2 changed files with 6 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 @@ -201,7 +201,8 @@ const fullChartRendererConfig: Required<ChartRendererConfigOptions> = {
showRowLines: false,
themeColors: 'someTheme',
themePreset: 'somePreset',
tooltipStyle: 'someStyle'
tooltipStyle: 'someStyle',
hideSectionsNotForSale: false
}

// Set up a complete Event Manager config
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ export interface ChartRendererConfigOptions extends DeprecatedConfigProperties,
* Called when the chart needs to prompt how many places to select for each ticket type. {@link https://docs.seats.io/docs/renderer/prompts-api/onPlacesWithTicketTypesPrompt See documentation}
*/
onPlacesWithTicketTypesPrompt?: (parameters: PlacesWithTicketTypesPromptParameters, confirmSelection: (placesPerTicketType: Dict<number> | string[]) => void) => void
/**
* For charts with sections, enabling this setting will hide sections where all bookable objects are set as not for sale. By extension, this will also hide entire floors if every object on it is set as not for sale. {@link https://docs.seats.io/docs/renderer/config-hidesectionsnotforsale/ See documentation}
*/
hideSectionsNotForSale?: boolean
}

export type ExtractedEventManagerProps = Pick<ChartRendererConfigOptions,
Expand Down

0 comments on commit 9d2e646

Please sign in to comment.