File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
CodeBeam.MudBlazor.Extensions/Components/Animate Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 104104 [Category (CategoryTypes .Item .Appearance )]
105105 public string ? KeyframeAdvanced { get ; set ; }
106106
107+ /// <summary >
108+ /// The refresh delay in miliseconds. Higher value means stability between multiple refreshes.
109+ /// </summary >
110+ [Parameter ]
111+ [Category (CategoryTypes .Item .Appearance )]
112+ public int RefreshSensitivity { get ; set ; } = 10 ;
113+
107114
108115 bool _show = true ;
109116 public async Task Refresh ()
110117 {
111118 _show = false ;
112- await Task .Delay (10 );
119+ await Task .Delay (RefreshSensitivity );
113120 await InvokeAsync (StateHasChanged );
114121 _show = true ;
115- await Task .Delay (10 );
122+ await Task .Delay (RefreshSensitivity );
116123 await InvokeAsync (StateHasChanged );
117124 }
118125
You can’t perform that action at this time.
0 commit comments