Portal Widget: Where can I find documentation about the <sp-???> Tags?

HSU
Tera Contributor

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>

 

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron
4 REPLIES 4

Sandeep Rajput
Tera Patron
Tera Patron

@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

https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/build/service-portal/concept/c_Nes...

Thanks that docu is also interesting. 
sp-widget is to load another widget. 


@HSU Please mark the response an accepted solution if it addressed your question.

xylostar
Tera Contributor

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.