Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Events sample in BitIcon demo page (#7882) #7886

Merged
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 @@ -37,12 +37,4 @@
</div>
</ExamplePreview>
</ComponentExampleBox>
<ComponentExampleBox Title="Events" RazorCode="@example4RazorCode" CsharpCode="@example4CsharpCode" Id="example4">
<ExamplePreview>
<div>
<BitIcon IconName="@iconName" AriaLabel="accept" Class="icon-class" />
<BitToggleButton IconName="@iconName" OnChange="() => iconName = iconName == BitIconName.Accept ? BitIconName.ChromeClose : BitIconName.Accept" />
</div>
</ExamplePreview>
</ComponentExampleBox>
</ComponentDemo>
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ public partial class BitIconDemo



private string iconName = BitIconName.Accept;


private readonly string example1RazorCode = @"
<BitIcon IconName=""@BitIconName.Accept"" AriaLabel=""accept"" />
<BitIcon IconName=""@BitIconName.Bus"" AriaLabel=""bus"" />
Expand All @@ -39,10 +36,4 @@ public partial class BitIconDemo
<BitIcon IconName=""@BitIconName.Accept"" AriaLabel=""accept"" Style=""font-size: 2rem; margin: 1rem 2rem; color: red;"" />
<BitIcon IconName=""@BitIconName.Bus"" AriaLabel=""bus"" Style=""font-size: 2rem; margin: 1rem 2rem; color: green;"" />
<BitIcon IconName=""@BitIconName.Pinned"" AriaLabel=""pinned"" Style=""font-size: 2rem; margin: 1rem 2rem; color: mediumpurple;"" />";

private readonly string example4RazorCode = @"
< BitIcon IconName=""@iconName"" AriaLabel=""accept"" Class=""icon-class"" />
<BitToggleButton IconName=""@iconName"" OnChange=""() => iconName = iconName == BitIconName.Accept ? BitIconName.ChromeClose : BitIconName.Accept"" />";
private readonly string example4CsharpCode = @"
private string iconName = BitIconName.Accept;";
}
Loading