mirror of
https://github.com/apache/superset.git
synced 2026-05-09 18:05:52 +00:00
feat(custom-tooltip): custom tooltip on deck.gl charts (#34276)
This commit is contained in:
committed by
GitHub
parent
bc6859a99d
commit
a66737cb05
@@ -76,7 +76,7 @@ export const HandlebarsViewer = ({
|
||||
return <p>{t('Loading...')}</p>;
|
||||
};
|
||||
|
||||
// usage: {{dateFormat my_date format="MMMM YYYY"}}
|
||||
// usage: {{ dateFormat my_date format="MMMM YYYY" }}
|
||||
Handlebars.registerHelper('dateFormat', function (context, block) {
|
||||
const f = block.hash.format || 'YYYY-MM-DD';
|
||||
return dayjs(context).format(f);
|
||||
|
||||
Reference in New Issue
Block a user