Skip to content

Commit 2f95095

Browse files
Progress
1 parent c5f5a96 commit 2f95095

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@namespace Blazor.AdminLte
2+
@inherits BaseClasses
3+
<div class="progress progress-xs">
4+
<div class="@Classes" style="width: @(Percentage)%"></div>
5+
</div>
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
using Microsoft.AspNetCore.Components;
2+
using System.Text;
3+
4+
namespace Blazor.AdminLte
5+
{
6+
public partial class Progress
7+
{
8+
[Parameter]
9+
public double Percentage { get; set; }
10+
}
11+
12+
public static class progress
13+
{
14+
public static FluentProgress _ { get { return new FluentProgress(""); } }
15+
public static FluentProgress @default { get { return new FluentProgress(" bg-default"); } }
16+
public static FluentProgress danger { get { return new FluentProgress(" bg-danger"); } }
17+
public static FluentProgress warning { get { return new FluentProgress(" bg-warning"); } }
18+
public static FluentProgress primary { get { return new FluentProgress(" bg-primary"); } }
19+
public static FluentProgress secondary { get { return new FluentProgress(" bg-secondary"); } }
20+
public static FluentProgress info { get { return new FluentProgress(" bg-info"); } }
21+
public static FluentProgress success { get { return new FluentProgress(" bg-success"); } }
22+
public static FluentProgress black { get { return new FluentProgress(" bg-black"); } }
23+
public static FluentProgress gray_dark { get { return new FluentProgress(" bg-gray-dark"); } }
24+
public static FluentProgress gray { get { return new FluentProgress(" bg-gray"); } }
25+
public static FluentProgress light { get { return new FluentProgress(" bg-light"); } }
26+
public static FluentProgress indigo { get { return new FluentProgress(" bg-indigo"); } }
27+
public static FluentProgress navy { get { return new FluentProgress(" bg-navy"); } }
28+
public static FluentProgress purple { get { return new FluentProgress(" bg-purple"); } }
29+
public static FluentProgress fuchsia { get { return new FluentProgress(" bg-fuchsia"); } }
30+
public static FluentProgress pink { get { return new FluentProgress(" bg-pink"); } }
31+
public static FluentProgress maroon { get { return new FluentProgress(" bg-maroon"); } }
32+
public static FluentProgress orange { get { return new FluentProgress(" bg-orange"); } }
33+
public static FluentProgress lime { get { return new FluentProgress(" bg-lime"); } }
34+
public static FluentProgress teal { get { return new FluentProgress(" bg-teal"); } }
35+
public static FluentProgress olive { get { return new FluentProgress(" bg-olive"); } }
36+
public static FluentProgress white { get { return new FluentProgress(" bg-white"); } }
37+
}
38+
39+
public class FluentProgress : FluentClass
40+
{
41+
public FluentProgress(string s, string col = "progress-bar")
42+
{
43+
this._class = new StringBuilder();
44+
_class.Append(col + s);
45+
}
46+
47+
public FluentProgress()
48+
{
49+
this._class = new StringBuilder();
50+
_class.Append("col");
51+
}
52+
public FluentProgress(FluentClass root)
53+
{
54+
this._class = root._class;
55+
56+
}
57+
58+
public FluentProgress _ { get { return new FluentProgress(""); } }
59+
public FluentProgress @default { get { return new FluentProgress(" bg-default"); } }
60+
public FluentProgress danger { get { return new FluentProgress(" bg-danger"); } }
61+
public FluentProgress warning { get { return new FluentProgress(" bg-warning"); } }
62+
public FluentProgress primary { get { return new FluentProgress(" bg-primary"); } }
63+
public FluentProgress secondary { get { return new FluentProgress(" bg-secondary"); } }
64+
public FluentProgress info { get { return new FluentProgress(" bg-info"); } }
65+
public FluentProgress success { get { return new FluentProgress(" bg-success"); } }
66+
public FluentProgress black { get { return new FluentProgress(" bg-black"); } }
67+
public FluentProgress gray_dark { get { return new FluentProgress(" bg-gray-dark"); } }
68+
public FluentProgress gray { get { return new FluentProgress(" bg-gray"); } }
69+
public FluentProgress light { get { return new FluentProgress(" bg-light"); } }
70+
public FluentProgress indigo { get { return new FluentProgress(" bg-indigo"); } }
71+
public FluentProgress navy { get { return new FluentProgress(" bg-navy"); } }
72+
public FluentProgress purple { get { return new FluentProgress(" bg-purple"); } }
73+
public FluentProgress fuchsia { get { return new FluentProgress(" bg-fuchsia"); } }
74+
public FluentProgress pink { get { return new FluentProgress(" bg-pink"); } }
75+
public FluentProgress maroon { get { return new FluentProgress(" bg-maroon"); } }
76+
public FluentProgress orange { get { return new FluentProgress(" bg-orange"); } }
77+
public FluentProgress lime { get { return new FluentProgress(" bg-lime"); } }
78+
public FluentProgress teal { get { return new FluentProgress(" bg-teal"); } }
79+
public FluentProgress olive { get { return new FluentProgress(" bg-olive"); } }
80+
public FluentProgress white { get { return new FluentProgress(" bg-white"); } }
81+
82+
}
83+
}

0 commit comments

Comments
 (0)