From 6e5223766593e85f4c9de0bec42ff9d21e4c7013 Mon Sep 17 00:00:00 2001 From: Mohammad Hossein Rastegarinia Date: Sun, 11 Aug 2024 10:16:56 +0330 Subject: [PATCH] feat(blazorui): improve BitCheckbox demo page #8277 (#8280) --- .../Inputs/Checkbox/BitCheckboxDemo.razor | 48 +++++++++++++++--- .../Inputs/Checkbox/BitCheckboxDemo.razor.cs | 49 +++++++++++++++---- .../Checkbox/BitCheckboxDemo.razor.scss | 34 ++++++++++--- 3 files changed, 106 insertions(+), 25 deletions(-) diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/Checkbox/BitCheckboxDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/Checkbox/BitCheckboxDemo.razor index 310d654ad4..251ccbe032 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/Checkbox/BitCheckboxDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/Checkbox/BitCheckboxDemo.razor @@ -11,6 +11,8 @@ ComponentSubClasses="componentSubClasses"> +
Basic usage of BitCheckbox with enabled and disabled states.
+

@@ -21,14 +23,18 @@ +
Customize the check icon of BitCheckbox.
+

- + +
Adjust the label position of BitCheckbox to be reversed.
+

@@ -39,6 +45,8 @@ +
Customizing the label of BitCheckbox using a template.
+
Label Template @@ -49,6 +57,8 @@ +
Display BitCheckbox in an indeterminate state.
+

@@ -57,6 +67,8 @@ +
Demonstrates one-way and two-way data binding with BitCheckbox.
+

Value:


@@ -87,6 +99,8 @@ +
Create a custom checkbox with unique content and style.
+
@@ -106,22 +120,38 @@ -
-
Component's Style & Class:

- +
Explore styling and class customization for BitCheckbox, including component styles, custom classes, and detailed styles.
+

+
Component's Style & Class:
+
+
+
-



-
Styles & Classes:

- +
+


+
Styles & Classes:
+
+
+
- +
+
Use data annotations to validate the BitCheckbox component.
+
@if (string.IsNullOrEmpty(SuccessMessage)) { @@ -146,6 +176,8 @@ +
Use BitCheckbox in a right-to-left (RTL).
+

diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/Checkbox/BitCheckboxDemo.razor.cs b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/Checkbox/BitCheckboxDemo.razor.cs index 526b89e963..cad6fee18b 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/Checkbox/BitCheckboxDemo.razor.cs +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/Checkbox/BitCheckboxDemo.razor.cs @@ -288,32 +288,61 @@ private void HandleInvalidSubmit() private readonly string example8RazorCode = @" - + - + -"; +"; private readonly string example9RazorCode = @"