Skip to content

Vizel API / core/src / resolveVizelSaveIndicatorView

Function: resolveVizelSaveIndicatorView()

ts
function resolveVizelSaveIndicatorView(
   status, 
   locale, 
   lastSaved, 
   relativeTime, 
   showTimestamp): VizelSaveIndicatorView;

Defined in: packages/core/src/auto-save.ts:268

Resolve the icon, text, and timestamp visibility for a VizelSaveStatus.

Pure function consumed by framework VizelSaveIndicator components.

Parameters

ParameterTypeDescription
statusVizelSaveStatusCurrent save status.
localeVizelLocale | undefinedOptional locale providing translated status strings.
lastSavedDate | null | undefinedLast successful save timestamp (for visibility check).
relativeTimestringPre-computed relative-time string (empty when none).
showTimestampbooleanWhether the consumer requested timestamp display.

Returns

VizelSaveIndicatorView

Released under the MIT License.