Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<main>
<div class="bb-top-row px-4 d-flex justify-content-between">
<Icon Name="IconName.List" role="button" @onclick="ToogleSidebar" />
<Icon Name="IconName.List" role="button" @onclick="ToggleSidebar" />
<a href="https://docs.microsoft.com/aspnet/" target="_blank">About</a>
</div>

Expand Down Expand Up @@ -54,5 +54,5 @@
return navItems;
}

private void ToogleSidebar() => sidebar.ToggleSidebar();
private void ToggleSidebar() => sidebar.ToggleSidebar();
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<main>
<div class="bb-top-row px-4 d-flex justify-content-between">
<Icon Name="IconName.List" role="button" @onclick="ToogleSidebar" />
<Icon Name="IconName.List" role="button" @onclick="ToggleSidebar" />
<a href="https://docs.microsoft.com/aspnet/" target="_blank">About</a>
</div>

Expand Down Expand Up @@ -55,5 +55,5 @@
return navItems;
}

private void ToogleSidebar() => sidebar.ToggleSidebar();
private void ToggleSidebar() => sidebar.ToggleSidebar();
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<main>
<div class="bb-top-row px-4 d-flex justify-content-between">
<Icon Name="IconName.List" role="button" @onclick="ToogleSidebar" />
<Icon Name="IconName.List" role="button" @onclick="ToggleSidebar" />
<a href="https://docs.microsoft.com/aspnet/" target="_blank">About</a>
</div>

Expand Down Expand Up @@ -55,5 +55,5 @@
return navItems;
}

private void ToogleSidebar() => sidebar.ToggleSidebar();
private void ToggleSidebar() => sidebar.ToggleSidebar();
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<main>
<div class="bb-top-row px-4 d-flex justify-content-between">
<Icon Name="IconName.List" role="button" @onclick="ToogleSidebar" />
<Icon Name="IconName.List" role="button" @onclick="ToggleSidebar" />
<a href="https://docs.microsoft.com/aspnet/" target="_blank">About</a>
</div>

Expand Down Expand Up @@ -55,5 +55,5 @@
return navItems;
}

private void ToogleSidebar() => sidebar.ToggleSidebar();
private void ToggleSidebar() => sidebar.ToggleSidebar();
}
2 changes: 1 addition & 1 deletion blazorbootstrap/Components/Button/Button.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,6 @@ public Size Size

// TODO: Review
// - Disable text wrapping: https://getbootstrap.com/docs/5.1/components/buttons/#disable-text-wrapping
// - Toogle states: https://getbootstrap.com/docs/5.1/components/buttons/#toggle-states
// - Toggle states: https://getbootstrap.com/docs/5.1/components/buttons/#toggle-states
// - IDispose
}
6 changes: 3 additions & 3 deletions docs/docs/05-components/buttons.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ Create responsive stacks of full-width, "block buttons" like those in Bootstrap

[See block buttons demo here.](https://demos.blazorbootstrap.com/buttons#block-buttons)

### Toogle States
### Toggle States

If you''re pre-toggling a button, you must manually add the `Active="true"` parameter.

<img src="https://i.imgur.com/JH9SZxQ.jpg" alt="Blazor Bootstrap: Button Component - Button Toogle States" />
<img src="https://i.imgur.com/JH9SZxQ.jpg" alt="Blazor Bootstrap: Button Component - Button Toggle States" />

```cshtml showLineNumbers
<p>
Expand All @@ -231,7 +231,7 @@ If you''re pre-toggling a button, you must manually add the `Active="true"` para
</p>
```

[See button toogle states demo here.](https://demos.blazorbootstrap.com/buttons#toggle-states)
[See button toggle states demo here.](https://demos.blazorbootstrap.com/buttons#toggle-states)

### Loading spinner

Expand Down
16 changes: 8 additions & 8 deletions docs/docs/05-components/sidebar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ Call `ToggleSidebar()` method to toggle the Sidebar to show the icons only.

<main>
<div class="bb-top-row px-4 d-flex justify-content-between">
<Icon Name="IconName.List" role="button" @onclick="ToogleSidebar" />
<Icon Name="IconName.List" role="button" @onclick="ToggleSidebar" />
<a href="https://docs.microsoft.com/aspnet/" target="_blank">About</a>
</div>

Expand Down Expand Up @@ -329,7 +329,7 @@ Call `ToggleSidebar()` method to toggle the Sidebar to show the icons only.
return navItems;
}

private void ToogleSidebar() => sidebar.ToggleSidebar();
private void ToggleSidebar() => sidebar.ToggleSidebar();
}
```

Expand All @@ -352,7 +352,7 @@ A badge is useful when displaying the application version, environment, or other

<main>
<div class="bb-top-row px-4 d-flex justify-content-between">
<Icon Name="IconName.List" role="button" @onclick="ToogleSidebar" />
<Icon Name="IconName.List" role="button" @onclick="ToggleSidebar" />
<a href="https://docs.microsoft.com/aspnet/" target="_blank">About</a>
</div>

Expand Down Expand Up @@ -399,7 +399,7 @@ A badge is useful when displaying the application version, environment, or other
return navItems;
}

private void ToogleSidebar() => sidebar.ToggleSidebar();
private void ToggleSidebar() => sidebar.ToggleSidebar();
}
```

Expand All @@ -422,7 +422,7 @@ Use the `CustomIconName` parameter to set the custom logo icon using font awesom

<main>
<div class="bb-top-row px-4 d-flex justify-content-between">
<Icon Name="IconName.List" role="button" @onclick="ToogleSidebar" />
<Icon Name="IconName.List" role="button" @onclick="ToggleSidebar" />
<a href="https://docs.microsoft.com/aspnet/" target="_blank">About</a>
</div>

Expand Down Expand Up @@ -469,7 +469,7 @@ Use the `CustomIconName` parameter to set the custom logo icon using font awesom
return navItems;
}

private void ToogleSidebar() => sidebar.ToggleSidebar();
private void ToggleSidebar() => sidebar.ToggleSidebar();
}
```

Expand All @@ -492,7 +492,7 @@ Use the `ImageSrc` parameter to set the brand logo.

<main>
<div class="bb-top-row px-4 d-flex justify-content-between">
<Icon Name="IconName.List" role="button" @onclick="ToogleSidebar" />
<Icon Name="IconName.List" role="button" @onclick="ToggleSidebar" />
<a href="https://docs.microsoft.com/aspnet/" target="_blank">About</a>
</div>

Expand Down Expand Up @@ -539,7 +539,7 @@ Use the `ImageSrc` parameter to set the brand logo.
return navItems;
}

private void ToogleSidebar() => sidebar.ToggleSidebar();
private void ToggleSidebar() => sidebar.ToggleSidebar();
}
```

Expand Down