Skip to content

Commit 654f733

Browse files
Merge pull request #4887 from syncfusion-content/ej2-910776-colorpicker
910776: Color Picker new UG sample
2 parents 88fde45 + 23fa1f4 commit 654f733

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

blazor-toc.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,6 +1519,9 @@
15191519
<li>
15201520
<a href="/blazor/color-picker/how-to/render-palette-alone">Render palette alone</a>
15211521
</li>
1522+
<li>
1523+
<a href="/blazor/color-picker/how-to/show-recent-color">Show Recent Color</a>
1524+
</li>
15221525
</ul>
15231526
</li>
15241527
<li>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
layout: post
3+
title: Show Recent color in Blazor Color Picker Component | Syncfusion
4+
description: Checkout and learn here all about Show Recent color in Syncfusion Blazor Color Picker component and more.
5+
platform: Blazor
6+
control: Color Picker
7+
documentation: ug
8+
---
9+
10+
# Show Recent color in Blazor Color Picker Component
11+
12+
The [`ShowRecentColors`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfColorPicker.html#Syncfusion_Blazor_Inputs_SfColorPicker_ShowRecentColors) property enables the display of recently selected colors in the ColorPicker when in palette mode. This feature helps users quickly access their most frequently used colors.
13+
14+
>Note: The [`ShowRecentColors`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfColorPicker.html#Syncfusion_Blazor_Inputs_SfColorPicker_ShowRecentColors) feature displays up to 10 recent colors as tiles and is available only in `palette` mode.
15+
16+
In the following sample, the [`ShowRecentColors`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfColorPicker.html#Syncfusion_Blazor_Inputs_SfColorPicker_ShowRecentColors) property is enabled to display recent colors in the `palette` area.
17+
18+
```cshtml
19+
@using Syncfusion.Blazor.Inputs
20+
21+
<h4>Choose a color</h4>
22+
<SfColorPicker ShowRecentColors="true"></SfColorPicker>
23+
```
24+
{% previewsample "https://blazorplayground.syncfusion.com/embed/LtLKiLLGUoxTFJzx?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
25+
26+
![Rendering Show Recent color in Blazor ColorPicker](./../images/blazor-colorpicker-show-recent-color.png)
15.4 KB
Loading

0 commit comments

Comments
 (0)