|
35 | 35 | * @param {boolean} drawerExpanded Flag if the drawer is expanded (only valid if allowExpand is true). Optional, default: false |
36 | 36 | * @param {string} drawerTitle Title to display for the drawer (leaving this blank will remove the provided expand capability) |
37 | 37 | * @param {object} notificationGroups Collection notification groups to add to the drawer. Alternatively, a single group object can be given if categorization is not used. |
| 38 | + * @param {string} notificationTrackField Optional field from the notifications to use to track by in the notifications listing ($index used otherwise). |
38 | 39 | * @param {function} onClose function() Callback for the close button. Close button is shown if this callback is supplied. Callback should set drawerHidden to true to close the drawer. |
39 | 40 | * @param {boolean} showMarkAllRead Flag if the mark all read button should be shown, optional, default is false |
40 | 41 | * @param {function} onMarkAllRead function(notificationGroup) Callback method for the mark all read button (Optional) |
|
76 | 77 | show-mark-all-read="true" on-mark-all-read="markAllRead" |
77 | 78 | show-clear-all="true" on-clear-all="clearAll" |
78 | 79 | heading-include="heading.html" subheading-include="subheading.html" notification-body-include="notification-body.html" |
79 | | - notification-footer-include="notification-footer.html" custom-scope="customScope"> |
| 80 | + notification-footer-include="notification-footer.html" custom-scope="customScope" notification-track-field="uid"> |
80 | 81 | </pf-notification-drawer> |
81 | 82 | </div> |
82 | 83 | </div> |
|
184 | 185 | subHeading: "5 New Events", |
185 | 186 | notifications: [ |
186 | 187 | { |
| 188 | + uid: 1, |
187 | 189 | unread: true, |
188 | 190 | message: "A New Event! Huzzah! Bold.", |
189 | 191 | status: 'info', |
190 | 192 | actions: menuActions, |
191 | 193 | timeStamp: currentTime - (1 * 60 * 60 * 1000) |
192 | 194 | }, |
193 | 195 | { |
| 196 | + uid: 2, |
194 | 197 | unread: true, |
195 | 198 | message: "Another Event Notification", |
196 | 199 | status: 'ok', |
197 | 200 | actions: menuActions, |
198 | 201 | timeStamp: currentTime - (2 * 60 * 60 * 1000) |
199 | 202 | }, |
200 | 203 | { |
| 204 | + uid: 3, |
201 | 205 | unread: false, |
202 | 206 | message: "Another Event Notification", |
203 | 207 | status: 'warning', |
204 | 208 | actions: menuActions, |
205 | 209 | timeStamp: currentTime - (10 * 60 * 60 * 1000) |
206 | 210 | }, |
207 | 211 | { |
| 212 | + uid: 4, |
208 | 213 | unread: false, |
209 | 214 | message: "Another Event Notification", |
210 | 215 | status: 'error', |
211 | 216 | actions: menuActions, |
212 | 217 | timeStamp: currentTime - (12 * 60 * 60 * 1000) |
213 | 218 | }, |
214 | 219 | { |
| 220 | + uid: 5, |
215 | 221 | unread: true, |
216 | 222 | message: "A New Event! Huzzah! Bold", |
217 | 223 | status: 'info', |
218 | 224 | actions: menuActions, |
219 | 225 | timeStamp: currentTime - (1 * 60 * 60 * 1000) |
220 | 226 | }, |
221 | 227 | { |
| 228 | + uid: 6, |
222 | 229 | unread: true, |
223 | 230 | message: "Another Event Notification", |
224 | 231 | status: 'error', |
225 | 232 | actions: menuActions, |
226 | 233 | timeStamp: currentTime - (2 * 60 * 60 * 1000) |
227 | 234 | }, |
228 | 235 | { |
| 236 | + uid: 7, |
229 | 237 | unread: false, |
230 | 238 | message: "Another Event Notification", |
231 | 239 | status: 'ok', |
232 | 240 | actions: menuActions, |
233 | 241 | timeStamp: currentTime - (10 * 60 * 60 * 1000) |
234 | 242 | }, |
235 | 243 | { |
| 244 | + uid: 8, |
236 | 245 | unread: false, |
237 | 246 | message: "Another Event Notification", |
238 | 247 | status: 'warning', |
239 | 248 | actions: menuActions, |
240 | 249 | timeStamp: currentTime - (12 * 60 * 60 * 1000) |
241 | 250 | }, |
242 | 251 | { |
| 252 | + uid: 9, |
243 | 253 | unread: true, |
244 | 254 | message: "Another Event Notification", |
245 | 255 | status: 'info', |
|
254 | 264 | subHeading: "3 New Events", |
255 | 265 | notifications: [ |
256 | 266 | { |
| 267 | + uid: 10, |
257 | 268 | unread: true, |
258 | 269 | message: "A New Event! Huzzah! Bold", |
259 | 270 | status: 'info', |
260 | 271 | actions: menuActions, |
261 | 272 | timeStamp: currentTime - (1 * 60 * 60 * 1000) |
262 | 273 | }, |
263 | 274 | { |
| 275 | + uid: 11, |
264 | 276 | unread: true, |
265 | 277 | message: "Another Event Notification", |
266 | 278 | status: 'error', |
267 | 279 | actions: menuActions, |
268 | 280 | timeStamp: currentTime - (2 * 60 * 60 * 1000) |
269 | 281 | }, |
270 | 282 | { |
| 283 | + uid: 12, |
271 | 284 | unread: false, |
272 | 285 | message: "Another Event Notification", |
273 | 286 | status: 'warning', |
274 | 287 | actions: menuActions, |
275 | 288 | timeStamp: currentTime - (10 * 60 * 60 * 1000) |
276 | 289 | }, |
277 | 290 | { |
| 291 | + uid: 13, |
278 | 292 | unread: false, |
279 | 293 | message: "Another Event Notification", |
280 | 294 | status: 'ok', |
281 | 295 | actions: menuActions, |
282 | 296 | timeStamp: currentTime - (12 * 60 * 60 * 1000) |
283 | 297 | }, |
284 | 298 | { |
| 299 | + uid: 14, |
285 | 300 | unread: true, |
286 | 301 | message: "Another Event Notification", |
287 | 302 | status: 'warning', |
|
301 | 316 | subHeading: "3 New Events", |
302 | 317 | notifications: [ |
303 | 318 | { |
| 319 | + uid: 15, |
304 | 320 | unread: true, |
305 | 321 | message: "A New Event! Huzzah! Bold", |
306 | 322 | status: 'warning', |
307 | 323 | actions: menuActions, |
308 | 324 | timeStamp: currentTime - (1 * 60 * 60 * 1000) |
309 | 325 | }, |
310 | 326 | { |
| 327 | + uid: 16, |
311 | 328 | unread: true, |
312 | 329 | message: "Another Event Notification", |
313 | 330 | status: 'ok', |
314 | 331 | actions: menuActions, |
315 | 332 | timeStamp: currentTime - (2 * 60 * 60 * 1000) |
316 | 333 | }, |
317 | 334 | { |
| 335 | + uid: 17, |
318 | 336 | unread: false, |
319 | 337 | message: "Another Event Notification", |
320 | 338 | status: 'ok', |
321 | 339 | actions: menuActions, |
322 | 340 | timeStamp: currentTime - (10 * 60 * 60 * 1000) |
323 | 341 | }, |
324 | 342 | { |
| 343 | + uid: 18, |
325 | 344 | unread: false, |
326 | 345 | message: "Another Event Notification", |
327 | 346 | status: 'error', |
328 | 347 | actions: menuActions, |
329 | 348 | timeStamp: currentTime - (12 * 60 * 60 * 1000) |
330 | 349 | }, |
331 | 350 | { |
| 351 | + uid: 19, |
332 | 352 | unread: true, |
333 | 353 | message: "Another Event Notification", |
334 | 354 | status: 'info', |
|
342 | 362 | subHeading: "3 New Events", |
343 | 363 | notifications: [ |
344 | 364 | { |
| 365 | + uid: 20, |
345 | 366 | unread: true, |
346 | 367 | message: "A New Event! Huzzah! Bold", |
347 | 368 | status: 'error', |
348 | 369 | actions: menuActions, |
349 | 370 | timeStamp: currentTime - (1 * 60 * 60 * 1000) |
350 | 371 | }, |
351 | 372 | { |
| 373 | + uid: 21, |
352 | 374 | unread: true, |
353 | 375 | message: "Another Event Notification", |
354 | 376 | status: 'error', |
355 | 377 | actions: menuActions, |
356 | 378 | timeStamp: currentTime - (2 * 60 * 60 * 1000) |
357 | 379 | }, |
358 | 380 | { |
| 381 | + uid: 22, |
359 | 382 | unread: false, |
360 | 383 | message: "Another Event Notification", |
361 | 384 | status: 'warning', |
362 | 385 | actions: menuActions, |
363 | 386 | timeStamp: currentTime - (10 * 60 * 60 * 1000) |
364 | 387 | }, |
365 | 388 | { |
| 389 | + uid: 23, |
366 | 390 | unread: false, |
367 | 391 | message: "Another Event Notification", |
368 | 392 | status: 'warning', |
369 | 393 | actions: menuActions, |
370 | 394 | timeStamp: currentTime - (12 * 60 * 60 * 1000) |
371 | 395 | }, |
372 | 396 | { |
| 397 | + uid: 24, |
373 | 398 | unread: true, |
374 | 399 | message: "Another Event Notification", |
375 | 400 | status: 'error', |
|
0 commit comments