File tree Expand file tree Collapse file tree 2 files changed +50
-2
lines changed
docs/microfrontend-composer/back-kit Expand file tree Collapse file tree 2 files changed +50
-2
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,43 @@ type Locale = {
116
116
117
117
where [LocalizedText][localized-text] is either a string or an object mapping language acronyms to strings.
118
118
119
+ It is possible to interpolate the title and content of the notification with the field of the HTTP response.
120
+
121
+ For example:
122
+
123
+ ` ` ` json
124
+ {
125
+ " tag" : " bk-notifications" ,
126
+ " properties" : {
127
+ " successEventMap" : {
128
+ " create-data" : {
129
+ " title" : {
130
+ " en" : " Data was created correctly with id:{{_id}}!" ,
131
+ " it" : " Dato creato correttamente con id: {{_id}}!"
132
+ },
133
+ " content" : {
134
+ " en" : " The data has been created correctly" ,
135
+ " it" : " I dati sono stati creati correttamente"
136
+ },
137
+ " type" : " success"
138
+ }
139
+ }
140
+ }
141
+ }
142
+ ` ` `
143
+
144
+ In the case of an error type notification, the interpolation must have the keyword error before the field of the response, such as ` {{error .status}}` .
145
+
146
+ Example of error response:
147
+
148
+ ` ` ` json
149
+ {
150
+ " status" : 404 ,
151
+ " message" : " Not found"
152
+ }
153
+ ` ` `
154
+
155
+ To interpolate the status you have to use ` {{error .status}}` , to interpolate the error message you have to use: ` {{error .message}}` .
119
156
120
157
## Examples
121
158
Original file line number Diff line number Diff line change @@ -15,8 +15,20 @@ All notable changes to this project will be documented in this file.
15
15
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
16
16
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
17
17
18
+ ## [ 1.5.18] - 2025-06-06
19
+
20
+ ### Added
21
+
22
+ - added prop interpolation with HTTP response values in ` bk-notifications ` component.
23
+
24
+ ### Fixed
25
+
26
+ - Fixed ` bk-table ` columns when Chrome version is 136 or above.
27
+
18
28
## [ 1.5.17] - 2025-05-07
19
29
30
+ ### Fixed
31
+
20
32
- added prop ` validateForm ` to custom footer button under the ` actions ` section for validating a form.
21
33
22
34
## [ 1.5.16] - 2025-03-03
@@ -78,7 +90,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
78
90
79
91
### Fixed
80
92
81
- - fixed csv export option of column names as field IDs of labels
93
+ - fixed csv export option of column names as field IDs of labels
82
94
83
95
## [ 1.5.7] - 2024-09-20
84
96
@@ -348,7 +360,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
348
360
- Manifest of component ` bk-expanded-filters ` includes property ` readFromUrl `
349
361
- Manifest of component ` bk-file-picker-modal ` is available
350
362
351
-
352
363
## [ 1.3.14] - 2023-06-15
353
364
354
365
### Added
You can’t perform that action at this time.
0 commit comments