- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2018 08:56 AM
Hello everyone,
at this time I'm attempting to pass a custom template to the Service Portal team's oob <now-attachments-list> directive so that I can customize the layout of the items in the attachment list. The directive has a "template" attribute in which makes it seem like a custom template could be passed to it.
So I experimented with this attribute and passed the name of a template that is defined in the ng-template related list of the widget in which this code is contained. See below:
<now-attachments-list template="attachmentItem" />
However, the template(nothing fancy...) doesn't render. So that leaves me with the question:
How can we correctly pass a custom template to the <now-attachments-list> directive so that we may customize the way in which we display attachment data?
Solved! Go to Solution.
- 3,002 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2021 02:29 AM
UPDATE: For anyone that has a similar requirement regarding the <now-attachments-list> directive, I recommend going to the following link for more information: look way further down into the comment section of this thread for
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2020 09:23 AM
Hey, our team is trying to do the same thing. Did you ever get an answer to this? Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2021 02:17 AM
Hey
apologies for the incredibly delayed response. There was a separate thread where a group of people were after the same thing however it was not updated until the last few months. it contains more information regarding this topic and templates for this directive:
https://community.servicenow.com/community?id=community_question&sys_id=5f540769dbd8dbc01dcaf3231f9619e5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2021 02:29 AM
UPDATE: For anyone that has a similar requirement regarding the <now-attachments-list> directive, I recommend going to the following link for more information: look way further down into the comment section of this thread for