Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.

web


web / lib/utils/header-utils

lib/utils/header-utils

Utility functions for header title and date formatting.

Functions

formatHeaderDate()

formatHeaderDate(dateStr): string

Format date for display in header.

Parameters

dateStr

string

Returns

string


buildDynamicTitle()

buildDynamicTitle(filters, catalogs, datasets): object

Build dynamic title based on active filters.

Parameters

filters
catalog?

string | null

datasets

string[]

startDate?

string | null

endDate?

string | null

catalogs

Catalog[]

datasets

Dataset[]

Returns

object

title

title: string

dateRange

dateRange: string | null

Last updated on