-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathToolbarSettings.cs
More file actions
37 lines (31 loc) · 1.27 KB
/
ToolbarSettings.cs
File metadata and controls
37 lines (31 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Website: https://www.blazor.zone or https://argozhang.github.io/
using System.Text.Json.Serialization;
namespace BootstrapBlazor.Components;
/// <summary>
/// 状态栏设置
/// </summary>
public class ToolbarSettings
{
/// <summary>
/// 主题,light 、dark(默认值)
/// </summary>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Theme { get; set; }
/// <summary>
/// 自定义工具栏按钮,null则为默认工具栏,false则不显示工具栏
/// </summary>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public object? Toolbar { get; set; }
/// <summary>
/// 选中后的悬浮菜单,null为默认悬浮菜单,false则不显示悬浮菜单
/// </summary>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public object? Bubble { get; set; }
/// <summary>
/// 新行的悬浮菜单,null为默认悬浮菜单,false则不显示悬浮菜单
/// </summary>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public object? Float { get; set; }
}