ProgBar:
- update limiti yellow/red int --> double
This commit is contained in:
@@ -16,7 +16,7 @@ namespace EgwCoreLib.Razor
|
||||
public double maxVal { get; set; } = 100;
|
||||
|
||||
[Parameter]
|
||||
public int redLim { get; set; } = 10;
|
||||
public double redLim { get; set; } = 10;
|
||||
|
||||
[Parameter]
|
||||
public bool showAct { get; set; } = true;
|
||||
@@ -28,7 +28,7 @@ namespace EgwCoreLib.Razor
|
||||
public bool singleLine { get; set; } = false;
|
||||
|
||||
[Parameter]
|
||||
public int yelLim { get; set; } = 20;
|
||||
public double yelLim { get; set; } = 20;
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
@@ -76,6 +76,8 @@ namespace EgwCoreLib.Razor
|
||||
|
||||
private int percWidthNum { get => (int)(100 * currVal / maxVal); }
|
||||
|
||||
private int redLimNum { get => (int)(100 * redLim / maxVal); }
|
||||
|
||||
private string textStyle
|
||||
{
|
||||
get => $"text-{currStyle}";
|
||||
@@ -87,7 +89,6 @@ namespace EgwCoreLib.Razor
|
||||
}
|
||||
|
||||
private int yelLimNum { get => (int)(100 * yelLim / maxVal); }
|
||||
private int redLimNum { get => (int)(100 * redLim / maxVal); }
|
||||
|
||||
#endregion Private Properties
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user