-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from openeuropa/FRONT-2483
FRONT-2483: Progress pattern.
- Loading branch information
Showing
6 changed files
with
109 additions
and
16 deletions.
There are no files selected for viewing
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
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
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,17 @@ | ||
{# | ||
/** | ||
* @file | ||
* Progress. | ||
*/ | ||
#} | ||
{% include '@oe-bcl/bcl-progress/progress.html.twig' with { | ||
'progress': progress, | ||
'min': min, | ||
'max': max, | ||
'message': message, | ||
'striped': striped, | ||
'animated': animated, | ||
'label': label, | ||
'variant': style, | ||
'bar_label': bar_label, | ||
} %} |
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,49 @@ | ||
progress: | ||
label: "Progress" | ||
description: "Indicate the progress as a bar. https://getbootstrap.com/docs/5.0/components/progress/" | ||
settings: | ||
style: | ||
type: "select" | ||
label: "Bar style" | ||
options: | ||
primary: "primary" | ||
secondary: "secondary" | ||
success: "success" | ||
danger: "danger" | ||
warning: "warning" | ||
info: "info" | ||
light: "light" | ||
dark: "dark" | ||
preview: "primary" | ||
striped: | ||
type: "boolean" | ||
label: "Striped style of state" | ||
preview: true | ||
animated: | ||
type: "boolean" | ||
label: "Animation on striped style of state" | ||
preview: true | ||
fields: | ||
label: | ||
type: "text" | ||
label: "Label in the bar" | ||
preview: "This is the label of progress bar" | ||
progress: | ||
type: "text" | ||
label: "Percentage of progress in the bar" | ||
preview: "50" | ||
bar_label: | ||
type: "text" | ||
label: "Text indicating the percentage of progress in the bar" | ||
preview: "50%" | ||
message: | ||
type: "text" | ||
label: "Optional description text below the progress bar" | ||
min: | ||
type: "text" | ||
label: "Minimum state of prorgress bar" | ||
preview: "0" | ||
max: | ||
type: "text" | ||
label: "Maximum state of prorgress bar" | ||
preview: "100" |
Empty file.
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