custom new FontSize() and custom new Format()

1 Answer 15 Views
Editor
Rollie
Top achievements
Rank 1
Rollie asked on 20 Jan 2022, 02:03 PM

There is an example of new ForeColor() { Colors = new List<string> { ... }}

How do I get a similar customization for FontSize?

For example, I only want large, x-large and xx-large

I would expect something like
new FontSize() { ??? = new List<string> {xx-large", "x-large", "large" } }

For ???, I tried FontSizes and Sizes, which did not work.

 

I have the same question ref new Format().

For example, I only want p, h1, h2 and h3

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 20 Jan 2022, 05:37 PM

Hello Rollie,

Yes, there is a similar customization for the font dropdowns too. All these have a Data property that you can set:

For example

new FontSize() { Data = new List<EditorDropDownListItem>() { new EditorDropDownListItem("my large", "32px") } }

Regards,
Dimo
Progress Telerik

Learn about the important changes coming in UI for Blazor 3.0 in January 2022!
Tags
Editor
Asked by
Rollie
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or