@@ -296,7 +296,7 @@ Now, let's bring it all together in the main `Index.razor` page. This component
Update `Components/Pages/Index.razor` with the following code:
-```html Components/Pages/Index.razor
+```html
@page "/"
@@ -325,7 +325,7 @@ Update `Components/Pages/Index.razor` with the following code:
We need to connect the checkboxes in the sidebar to the data displayed in the scheduler. Since we're using our `AppointmentService` to hold the state, we can detect changes to the checkbox values and re-filter the scheduler's resource data. Can bind the change event to checkbox and sliders to form the filter query and update the resource data.
Refer the following code to implement the filtering logic in `Components/Pages/Sidebar.razor`:
-```csharp Components/Pages/Sidebar.razor
+```csharp
@code {
// ... existing code ...
@@ -407,7 +407,7 @@ We can validate the form fields using the `ValidationMessage` component. The `Va
We can apply the following code to the `Schedule.razor` file to create the custom form.
-```html Components/Pages/Schedule.razor
+```html
@@ -539,6 +539,7 @@ Integrate `SfToast` for user notifications throughout the application. When a us
```
The `OnActionBegin` event of the `SfSchedule` component can be bound to a method that will handle the toast notifications.
+
```csharp
public async Task OnActionBegin(ActionEventArgs args)
{
@@ -598,4 +599,4 @@ A demo of this example can be tried in [this link](https://blazor.syncfusion.com
This guide has demonstrated how to build a functional and interactive stay reservation application. It has shown how to compose a complex UI by combining multiple Syncfusion Blazor components like the **Scheduler**, **Sidebar**, **AppBar**, **Accordion**, **Inputs**, and **Dropdowns**.
-Most importantly, a clean state management pattern has been implemented using a singleton service, allowing the components to communicate and share data seamlessly. This architecture is scalable and makes the application easy to maintain and extend with new features.
\ No newline at end of file
+Most importantly, a clean state management pattern has been implemented using a singleton service, allowing the components to communicate and share data seamlessly. This architecture is scalable and makes the application easy to maintain and extend with new features.