-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui5-barcode-scanner-dialog): added support for custom header and…
… footer slots This update introduces two new slot attributes for `ui5-barcode-scanner-dialog`, allowing developers to customize the header and footer of the dialog. If no custom content is provided, the dialog will use its default layout. The new slots enhance flexibility for developers, enabling the addition of custom titles, buttons, and any other elements in the header and footer areas. Related: #8919
- Loading branch information
Showing
6 changed files
with
208 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<ui5-dialog stretch class="ui5-barcode-scanner-dialog-root" .open="{{_open}}" @ui5-close="{{_closeDialog}}"> | ||
<slot name="header"></slot> | ||
<div class="ui5-barcode-scanner-dialog-video-wrapper"> | ||
<video autoplay playsinline muted class="ui5-barcode-scanner-dialog-video"></video> | ||
<canvas class="ui5-barcode-scanner-dialog-overlay"></canvas> | ||
</div> | ||
<div slot="footer" class="ui5-barcode-scanner-dialog-footer"> | ||
<slot name="footer" class="ui5-barcode-scanner-dialog-footer"> | ||
<ui5-button design="Transparent" @click={{_closeDialog}}>{{_cancelButtonText}}</ui5-button> | ||
</div> | ||
</slot> | ||
</ui5-dialog> | ||
<ui5-busy-indicator class="ui5-barcode-scanner-dialog-busy" ?active={{loading}} size="L" | ||
text="{{_busyIndicatorText}}"></ui5-busy-indicator> |
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 |
---|---|---|
@@ -1,3 +1,12 @@ | ||
.barcodescannerdialog1auto { | ||
background-color: var(--sapBackgroundColor); | ||
background-color: var(--sapBackgroundColor); | ||
} | ||
|
||
.custom-dialog-header { | ||
text-align: center; | ||
padding-bottom: .4375rem; | ||
} | ||
|
||
.custom-dialog-footer { | ||
height: auto; | ||
} |