@nuxeo/nuxeo-ui-elements
Version:
Nuxeo UI Web Components.
61 lines (51 loc) • 2.15 kB
HTML
<!--
@license
(C) Copyright Nuxeo Corp. (http://nuxeo.com/)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<title>nuxeo-dropdown-aggregation</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes" />
<script src="/components/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script type="module">
import '@polymer/polymer/polymer-legacy.js';
import '@nuxeo/nuxeo-elements/nuxeo-connection.js';
import '@nuxeo/nuxeo-elements/nuxeo-page-provider.js';
import '../nuxeo-demo.js';
import '../../nuxeo-aggregation/nuxeo-dropdown-aggregation.js';
</script>
</head>
<body>
<dom-bind>
<template>
<nuxeo-connection url="http://localhost:8080/nuxeo"></nuxeo-connection>
<nuxeo-page-provider
auto
provider="default_search"
page-size="40"
enrichers="thumbnail"
aggregations="{{aggregations}}"
fetch-aggregates
params='{"ecm_path": ["/default-domain/workspaces/demo"]}'
>
</nuxeo-page-provider>
<nuxeo-demo-section heading="Dropdown aggregation" size="small">
<nuxeo-dropdown-aggregation data="[[aggregations.dc_creator_agg]]"></nuxeo-dropdown-aggregation>
</nuxeo-demo-section>
<nuxeo-demo-section heading="Dropdown aggregation (multiple)" size="small">
<nuxeo-dropdown-aggregation data="[[aggregations.dc_modified_agg]]" multiple></nuxeo-dropdown-aggregation>
</nuxeo-demo-section>
</template>
</dom-bind>
</body>
</html>