Emitted when the button is clicked AND the button isn't disabled/loading.
Force-disable independently of Loading.
Visible button text. Defaults to "Refresh". Use [ShowLabel]="false" for icon-only.
When true, the icon spins and the button is disabled. Pass IsLoading from the page.
Show the text label next to the icon. Defaults to true.
Button size passed to mjButton. Defaults to 'sm' to match page-header density.
Hover/aria tooltip. Defaults to "Refresh".
Button variant passed to mjButton. Defaults to 'secondary'.
mj-refresh-button — Canonical Refresh button for the
[actions]slot of<mj-page-header>. Encapsulates the icon + spin-on-loading behavior so pages don't reinvent it every time.Replaces the repeated:
Usage:
The
Loadinginput drives both the spinner AND the disabled state — pass the page'sIsLoadingflag and you're done.