HawkExDashboard.Formatters (hawk_ex_dashboard v0.1.0)

Copy Markdown View Source

Shared formatting helpers for displaying data across dashboard pages.

Summary

Functions

Formats a DateTime as a short, human-readable string for table cells. Returns an em dash for nil.

Formats an integer string with thousands separators.

Functions

format_dt(dt)

Formats a DateTime as a short, human-readable string for table cells. Returns an em dash for nil.

format_number(value)

Formats an integer string with thousands separators.