-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui5-file-uploader): implement custom valueStateMessage (#2131)
Introduce support for custom value state message as slot. Note: although the ui5-input is internally used, we can not just forward the slot (as in the DatePicker for example), because it is not the element that is clicked, focused and so on. Related to #1086
- Loading branch information
Showing
4 changed files
with
181 additions
and
1 deletion.
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,24 @@ | ||
<ui5-popover | ||
skip-registry-update | ||
_disable-initial-focus | ||
prevent-focus-restore | ||
no-padding | ||
no-arrow | ||
class="ui5-valuestatemessage-popover" | ||
placement-type="Bottom" | ||
horizontal-align="Left" | ||
> | ||
<div slot="header" class="{{classes.popoverValueState}}" style="{{styles.popoverHeader}}"> | ||
{{> valueStateMessage}} | ||
</div> | ||
</ui5-popover> | ||
|
||
{{#*inline "valueStateMessage"}} | ||
{{#if shouldDisplayDefaultValueStateMessage}} | ||
{{valueStateText}} | ||
{{else}} | ||
{{#each valueStateMessageText}} | ||
{{this}} | ||
{{/each}} | ||
{{/if}} | ||
{{/inline}} |
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