- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2024 02:41 AM
Dear developers,
My team is developing more and more on the Employee Center.
While the standard HTML, Angular and Bootstraps we still can refer to their product/API/Component reference documentations, for the <sp-???> tags documentation we have tried to search, but still cannot find.
- <sp-panel>
- <sp-widget>
Any one can help on this? Thanks.
Specific Example: How can I make the Panel Title to be clickable (KB also in Category Widget)?
- it's displayed using <sp-panel> tag, yet I don't know which other attributes are possible.
<sp-panel ng-if="::data.isvalid" title="{{data.alsoInMsg}}">
<div ng-repeat="a in ::data.articles" class="m-b" >
<a href="?id=kb_article&sys_id={{::a.sys_id}}">{{::a.short_description}}</a>
<div>
<span ng-if="::a.sys_view_count == 1" class="views pad-right">
<glyph sn-char="eye-open" class="pad-right"></glyph>
${{{::a.sys_view_count}} View}
</span>
<span ng-if="::a.sys_view_count > 1" class="views pad-right">
<glyph sn-char="eye-open" class="pad-right"></glyph>
${{{::a.sys_view_count}} Views}
</span>
</div>
</div>
<div ng-show="::(data.articles.length == 0)">
${No other articles}
</div>
<div ng-show="::(data.count > 5)">
<a href="?id=kb_category&kb_category={{::data.category_id}}">${View all {{::data.count}} articles}</a>
</div>
</sp-panel>
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2024 02:45 AM
@HSU Didn't find much on SP Panel. However, found sample scripts and documentation on SP-Widget here are the URLs.
https://serviceportal.io/docs/documentation/widget_embedded.md

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2024 02:45 AM
@HSU Didn't find much on SP Panel. However, found sample scripts and documentation on SP-Widget here are the URLs.
https://serviceportal.io/docs/documentation/widget_embedded.md
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2024 10:27 PM
Thanks that docu is also interesting.
sp-widget is to load another widget.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2024 10:38 PM
@HSU Please mark the response an accepted solution if it addressed your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2024 12:45 AM
You can find some details about the <sp-panel> and other <sp-???> tags in the ServiceNow community discussions and by looking at example widgets in the Service Portal. For making the Panel Title clickable, you might need to use a custom script within the <sp-panel>. Also, checking the Service Portal's documentation and exploring widget properties might give you more insights.