(core) Add learn more link to tooltip

Summary:
Adds a link to the support site documentation from the tooltip
about filtering reference choices with dropdown conditions.

Test Plan: N/A

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D4240
This commit is contained in:
George Gevoian 2024-04-26 18:01:41 -04:00
parent 3112433a58
commit 8012e376b5
2 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,9 @@ see or edit which parts of your document.')
dom('div', {style: 'margin-top: 8px;'}, t('Example: {{example}}', { dom('div', {style: 'margin-top: 8px;'}, t('Example: {{example}}', {
example: dom.create(buildHighlightedCode, 'choice.Role == "Manager"', {}, {style: 'margin-top: 8px;'}), example: dom.create(buildHighlightedCode, 'choice.Role == "Manager"', {}, {style: 'margin-top: 8px;'}),
})), })),
dom('div',
cssLink({href: commonUrls.helpFilteringReferenceChoices, target: '_blank'}, t('Learn more.')),
),
...args, ...args,
), ),
}; };

View File

@ -86,6 +86,7 @@ export const commonUrls = {
helpTelemetryLimited: "https://support.getgrist.com/telemetry-limited", helpTelemetryLimited: "https://support.getgrist.com/telemetry-limited",
helpCalendarWidget: "https://support.getgrist.com/widget-calendar", helpCalendarWidget: "https://support.getgrist.com/widget-calendar",
helpLinkKeys: "https://support.getgrist.com/examples/2021-04-link-keys", helpLinkKeys: "https://support.getgrist.com/examples/2021-04-link-keys",
helpFilteringReferenceChoices: "https://support.getgrist.com/col-refs/#filtering-reference-choices-in-dropdown",
freeCoachingCall: getFreeCoachingCallUrl(), freeCoachingCall: getFreeCoachingCallUrl(),
contactSupport: getContactSupportUrl(), contactSupport: getContactSupportUrl(),
plans: "https://www.getgrist.com/pricing", plans: "https://www.getgrist.com/pricing",