-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CodeEditorOptions, EditorHeight, and MultiLineOptions classes
This commit introduces three new classes to the CodeEditor namespace. CodeEditorOptions provides various configuration options for the code editor while EditorHeight defines available height options. MultiLineOptions is specifically built for managing multi-line editor settings.
- Loading branch information
1 parent
a41a542
commit 14992cf
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/clients/Elsa.Api.Client/Shared/UIHints/CodeEditor/CodeEditorOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using JetBrains.Annotations; | ||
|
||
namespace Elsa.Api.Client.Shared.UIHints.CodeEditor; | ||
|
||
/// <summary> | ||
/// Options for the code editor component. | ||
/// </summary> | ||
[PublicAPI] | ||
public class CodeEditorOptions | ||
{ | ||
/// <summary>The height of the editor.</summary> | ||
public EditorHeight? EditorHeight { get; set; } | ||
|
||
/// <summary>The language to use for syntax highlighting.</summary> | ||
public string? Language { get; set; } | ||
|
||
/// <summary>Whether the editor should be in single line mode.</summary> | ||
public bool? SingleLineMode { get; set; } | ||
} |
20 changes: 20 additions & 0 deletions
20
src/clients/Elsa.Api.Client/Shared/UIHints/CodeEditor/EditorHeight.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using JetBrains.Annotations; | ||
|
||
namespace Elsa.Api.Client.Shared.UIHints.CodeEditor; | ||
|
||
/// <summary> | ||
/// Height options for the code editor component. | ||
/// </summary> | ||
[PublicAPI] | ||
public enum EditorHeight | ||
{ | ||
/// <summary> | ||
/// The default height. | ||
/// </summary> | ||
Default, | ||
|
||
/// <summary> | ||
/// A large height. | ||
/// </summary> | ||
Large | ||
} |
10 changes: 10 additions & 0 deletions
10
src/clients/Elsa.Api.Client/Shared/UIHints/CodeEditor/MultiLineOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using JetBrains.Annotations; | ||
|
||
namespace Elsa.Api.Client.Shared.UIHints.CodeEditor; | ||
|
||
/// <summary> | ||
/// Options for the multi-line editor component. | ||
/// </summary> | ||
/// <param name="EditorHeight">The height of the editor.</param> | ||
[PublicAPI] | ||
public record MultiLineOptions(EditorHeight EditorHeight); |