release: WRNexusJS 0.3.5
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
// Progress bar (native <progress>, themed).
|
||||
component Progress {
|
||||
props {
|
||||
value = 0
|
||||
size = "default"
|
||||
color = "primary"
|
||||
label = "Progress"
|
||||
value = 50
|
||||
max = 100
|
||||
showValue = true
|
||||
class = ""
|
||||
}
|
||||
view {
|
||||
<progress class="wire-progress {class}" value="{value}" max="{max}"></progress>
|
||||
<div class="wire-next wire-next--color-{color} wire-next--size-{size} wire-next--progress {class}">
|
||||
<div class="wire-next__row"><span>{label}</span>{#if showValue}<strong>{value}%</strong>{/if}</div>
|
||||
<progress value="{value}" max="{max}"></progress>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user