- <content id="data-content">
- <style>
- mgt-person {
- --initials-background-color: {{@root.theme.palette.themePrimary}};
- }
- </style>
- <div class="template">
- {{#if @root.properties.showSelectedFilters}}
- <pnp-selectedfilters
- data-filters="{{JSONstringify filters.selectedFilters 2}}"
- data-filters-configuration="{{JSONstringify filters.filtersConfiguration 2}}"
- data-instance-id="{{filters.instanceId}}"
- data-operator="{{filters.filterOperator}}"
- data-theme-variant="{{JSONstringify @root.theme}}"
- >
- </pnp-selectedfilters>
- {{/if}}
- <div class="template--header">
- {{#if @root.properties.showResultsCount}}
- <div class="template--resultCount">
- <label class="ms-fontWeight-semibold">{{getCountMessage @root.data.totalItemsCount @root.inputQueryText}}</label>
- </div>
- {{/if}}
- <div class="template--sort">
- <pnp-sortfield
- data-fields="{{JSONstringify @root.properties.dataSourceProperties.sortList}}"
- data-default-selected-field="{{sort.selectedSortFieldName}}"
- data-default-direction="{{sort.selectedSortDirection}}"
- data-theme-variant="{{JSONstringify @root.theme}}">
- </pnp-sortfield>
- </div>
- </div>
- <div>
- <ul class="template--defaultList">
- {{#each data.items as |item|}}
- <pnp-select
- data-enabled="{{@root.properties.itemSelectionProps.allowItemSelection}}"
- data-index="{{@index}}"
- data-is-selected="{{isItemSelected @root.selectedKeys @index}}">
- <template id="content">
- <li class="template--peopleListItem" tabindex="0">
- {{#> resultTypes item=item}}
- {{#and @root.properties.layoutProperties.showPersonaCard (slot item @root.slots.PersonQuery)}}
- <mgt-person user-id="{{getUserEmail (slot item @root.slots.PersonQuery)}}" person-card="hover">
- <template>
- <pnp-persona
- data-image-url="\{{personImage}}"
- data-fields-configuration="{{JSONstringify @root.properties.layoutProperties.peopleFields}}"
- data-item="{{JSONstringify item}}"
- data-persona-size="{{@root.properties.layoutProperties.personaSize}}"
- data-theme-variant="{{JSONstringify @root.theme}}"
- data-instance-id="{{@root.instanceId}}"
- data-context="{{JSONstringify @root}}">
- </pnp-persona>
- </template>
- <template data-type="person-card">
- <mgt-person-card inherit-details>
- </mgt-person-card>
- </template>
- </mgt-person>
- {{else}}
- <pnp-persona
- data-fields-configuration="{{JSONstringify @root.properties.layoutProperties.peopleFields}}"
- data-item="{{JSONstringify item}}"
- data-persona-size="{{@root.properties.layoutProperties.personaSize}}"
- data-context="{{JSONstringify @root}}"
- data-instance-id="{{@root.instanceId}}"
- data-theme-variant="{{JSONstringify @root.theme}}"
- ></pnp-persona>
- {{/and}}
- {{/resultTypes}}
- </li>
- </template>
- </pnp-select>
- {{/each}}
- </ul>
- </div>
- {{#if @root.properties.paging.showPaging}}
- {{#gt @root.data.totalItemsCount @root.properties.paging.itemsCountPerPage}}
- <pnp-pagination
- data-total-items="{{@root.data.totalItemsCount}}"
- data-hide-first-last-pages="{{@root.properties.paging.hideFirstLastPages}}"
- data-hide-disabled="{{@root.properties.paging.hideDisabled}}"
- data-hide-navigation="{{@root.properties.paging.hideNavigation}}"
- data-range="{{@root.properties.paging.pagingRange}}"
- data-items-count-per-page="{{@root.properties.paging.itemsCountPerPage}}"
- data-current-page-number="{{@root.paging.currentPageNumber}}"
- data-theme-variant="{{JSONstringify @root.theme}}"
- >
- </pnp-pagination>
- {{/gt}}
- {{/if}}
- </div>
- </content>
- <content id="placeholder-content">
- <div class="placeholder">
- {{#if @root.properties.showResultsCount}}
- <div class="template--resultCount">
- <span class="placeholder--shimmer placeholder--line" style="width: 20%"></span>
- </div>
- {{/if}}
- <div>
- <ul class="template--defaultList">
- {{#times @root.properties.paging.itemsCountPerPage}}
- <pnp-personashimmers
- data-persona-size="{{@root.properties.layoutProperties.personaSize}}"
- data-theme-variant="{{JSONstringify @root.theme}}"
- >
- </pnp-personashimmers>
- {{/times}}
- </ul>
- </div>
- </div>
- </content>
[text] template
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new: