-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui5-busy-indicator): added property text-placement (#8471)
* feat(ui5-busy-indicator): added new property text-placement * feat(ui5-busy-indicator): added property text-placement added example and additional test * feat(ui5-busy-indicator): added property text-placement added example and additional test * feat(ui5-busy-indicator): added property text-placement updated sample * feat(ui5-busy-indicator): added property text-placement texts are updated
- Loading branch information
1 parent
93b074d
commit a494473
Showing
10 changed files
with
133 additions
and
11 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
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,20 @@ | ||
/** | ||
* Different BusyIndicator text placements. | ||
* | ||
* @public | ||
*/ | ||
enum BusyIndicatorTextPlacement { | ||
/** | ||
* The text will be displayed on top of the busy indicator. | ||
* @public | ||
*/ | ||
Top = "Top", | ||
|
||
/** | ||
* The text will be displayed at the bottom of the busy indicator. | ||
* @public | ||
*/ | ||
Bottom = "Bottom", | ||
} | ||
|
||
export default BusyIndicatorTextPlacement; |
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
4 changes: 4 additions & 0 deletions
4
packages/website/docs/_samples/main/BusyIndicator/TextPlacement/TextPlacement.md
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,4 @@ | ||
import html from '!!raw-loader!./sample.html'; | ||
import js from '!!raw-loader!./main.js'; | ||
|
||
<Editor html={html} js={js} /> |
1 change: 1 addition & 0 deletions
1
packages/website/docs/_samples/main/BusyIndicator/TextPlacement/main.js
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 @@ | ||
import "@ui5/webcomponents/dist/BusyIndicator.js"; |
26 changes: 26 additions & 0 deletions
26
packages/website/docs/_samples/main/BusyIndicator/TextPlacement/sample.html
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,26 @@ | ||
<!-- playground-fold --> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Sample</title> | ||
</head> | ||
|
||
<body style="background-color: var(--sapBackgroundColor)"> | ||
<!-- playground-fold-end --> | ||
|
||
<ui5-busy-indicator text="Loading data from backend server.." active> | ||
<div style="height: 200px; width: 200px;"></div> | ||
</ui5-busy-indicator> | ||
<ui5-busy-indicator text="Loading data from backend server..." text-placement="Top" active> | ||
<div style="height: 200px; width: 200px;"></div> | ||
</ui5-busy-indicator> | ||
|
||
<!-- playground-fold --> | ||
<script type="module" src="main.js"></script> | ||
</body> | ||
|
||
</html> | ||
<!-- playground-fold-end --> |