Skip to content

Commit 7130107

Browse files
Merge pull request #6326 from syncfusion-content/PriyankaKarthikeyan14-patch-5
Updated spinner-and-progress.md
2 parents aab5211 + 8420e11 commit 7130107

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

blazor/progress-button/spinner-and-progress.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,16 @@ The progress state can be changed dynamically by modifying the [Percent](https:/
148148

149149
### Start and Stop Methods
150150

151-
You can pause and resume the progress using the [Stop](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SplitButtons.SfProgressButton.html#Syncfusion_Blazor_SplitButtons_SfProgressButton_Stop) and [Start](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SplitButtons.SfProgressButton.html#Syncfusion_Blazor_SplitButtons_SfProgressButton_Start_System_Nullable_System_Double__) methods, respectively. In this example, clicking the Progress Button will pause and resume the progress.
151+
You can pause and resume the progress using the [StopAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SplitButtons.SfProgressButton.html#Syncfusion_Blazor_SplitButtons_SfProgressButton_StopAsync) and [StartAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SplitButtons.SfProgressButton.html#Syncfusion_Blazor_SplitButtons_SfProgressButton_StartAsync_System_Double_) methods, respectively. In this example, clicking the Progress Button will pause and resume the progress.
152152

153153
```cshtml
154154
155155
@using Syncfusion.Blazor.SplitButtons
156156
157-
<SfProgressButton Content="@Content" EnableProgress="true" CssClass="@CssClass" IconCss="@IconCss" OnClick="Click" @ref="ProgressBtn">
157+
<SfProgressButton Content="@Content" EnableProgress="true" CssClass="@CssClass" IconCss="@IconCss" @ref="ProgressBtn">
158158
<ProgressButtonEvents OnEnd="End"></ProgressButtonEvents>
159159
</SfProgressButton>
160+
<SfButton OnClick="Click">Start And Stop</SfButton>
160161
161162
@code {
162163
SfProgressButton ProgressBtn;
@@ -175,13 +176,13 @@ You can pause and resume the progress using the [Stop](https://help.syncfusion.c
175176
{
176177
Content = "Resume";
177178
IconCss = "e-icons e-play";
178-
await ProgressBtn.Stop();
179+
await ProgressBtn.StopAsync();
179180
}
180181
else if (this.Content == "Resume")
181182
{
182183
Content = "Pause";
183184
IconCss = "e-icons e-pause";
184-
await ProgressBtn.Start();
185+
await ProgressBtn.StartAsync();
185186
}
186187
}
187188
@@ -233,4 +234,4 @@ You can complete the progress by using the [EndProgressAsync](https://help.syncf
233234
}
234235
}
235236
236-
```
237+
```

0 commit comments

Comments
 (0)