Skip to content

Commit aa77acf

Browse files
authored
Catalog Item Explorer - Widget Update
Functionality update: - Support for the external URL content items. - The default target window changed to "_self" (same window). - Option to open an item in a new window added at the end of the row.
1 parent c898a9e commit aa77acf

File tree

1 file changed

+23
-16
lines changed
  • Modern Development/Service Portal Widgets/Catalog Item Explorer

1 file changed

+23
-16
lines changed

Modern Development/Service Portal Widgets/Catalog Item Explorer/template.html

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,35 @@
3131
</div>
3232
<!-- Item List -->
3333
<ul role="rowgroup" class="list-group padder-l-none padder-r-none">
34-
<li class="list-group-item" ng-repeat="item in c.displayItems | limitTo:c.data.itemsPerPage" style="margin:0;"
35-
ng-click="c.openUrl(item.itemId)">
36-
<div role="cell" class="padder-l-none padder-r-none main-column">
37-
<div class="primary-display">
38-
{{item.name}}
39-
</div>
40-
<small class="text-muted">
41-
<div class="secondary-display">
42-
<span>{{item.description}}</span>
43-
</div>
44-
</small>
45-
</div>
46-
</li>
47-
</ul>
34+
<li class="list-group-item" ng-repeat="item in c.displayItems | limitTo:c.data.itemsPerPage" ng-click="c.openUrl(item.itemId, item.externalUrl)">
35+
<div role="cell" class="padder-l-none padder-r-none main-column">
36+
<div class="primary-display">
37+
{{item.name}}
38+
</div>
39+
<small class="text-muted">
40+
<div class="secondary-display">
41+
<span>{{item.description}}</span>
42+
</div>
43+
</small>
44+
</div>
45+
<!-- Item Type -->
46+
<div role="cell" class="item-type-column text-muted">
47+
{{item.type}}
48+
</div>
49+
<!-- External Redirect -->
50+
<div role="cell external-redirect-cell" ng-click="c.openUrl(item.itemId, item.externalUrl, true); $event.stopPropagation();">
51+
<i class="fa fa-external-link" aria-hidden="true"></i>
52+
</div>
53+
</li>
54+
</ul>
4855
<!-- Pagination -->
49-
<div class="panels-container" ng-if="c.isMultiplePage" style="display: flex; justify-content: center;">
56+
<div class="panels-container" ng-if="c.isMultiplePage">
5057
<uib-pagination total-items="c.filteredCatalogItems.length" ng-model="c.data.currentPage"
5158
ng-change="c.pageChanged()" items-per-page="c.data.itemsPerPage" max-size="c.data.maxPagesInPaginator"
5259
boundary-links="c.data.showBoundaryLinks">
5360
</uib-pagination>
5461
</div>
5562
<!-- Panel Footer -->
5663
<div class="panel-footer">Total items found:
57-
{{c.filteredCatalogItems.length}}<span class="copyright" ng-show="c.data.showCopyright">&copy; 2023 Ivan Betev</span></div>
64+
{{c.filteredCatalogItems.length}}<span class="copyright" ng-show="c.data.showCopyright">&copy; 2025 Ivan Betev</span></div>
5865
</div>

0 commit comments

Comments
 (0)