@teipublisher/pb-components
Version:
Collection of webcomponents underlying TEI Publisher
66 lines (58 loc) • 2.22 kB
HTML
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes" />
<title>pb-search multi Demo</title>
<link rel="Stylesheet" href="demo.css">
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script><script type="module" src="../pb-components-bundle.js"></script>
</head>
<body>
<pb-demo-snippet>
<template>
<style>
pb-search {
display: block;
--pb-search-label-color: var(--paper-grey-500, #e0e0e0);
--pb-search-input-color: var(--paper-grey-900, #202020);
--pb-search-focus-color: var(--paper-orange-500);
}
pb-progress {
margin-bottom: 20px;
}
pb-paginate {
margin-top: 40px;
margin-bottom: 10px;
}
pb-load {
height: 60vh;
overflow: auto;
}
#results header {
display: flex;
background-color: #F0F0F0;
}
#results header .count {
margin-right: 10px;
}
[multi]{
height:200px;
}
</style>
<pb-page endpoint="https://teipublisher.com/exist/apps/tei-publisher" api-version="1.0.0" url-path="query">
<pb-progress></pb-progress>
<main>
<h2>multi-select</h2>
<pb-custom-form id="custom-form">
<input type="text" name="custom">
<button type="submit" slot="searchButton">Submit</button>
<button type="reset" slot="resetButton">Reset</button>
</pb-custom-form>
<pb-search id="search-form" subforms="pb-custom-form"></pb-search>
<pb-paginate per-page="10" range="5"></pb-paginate>
<pb-load url="api/search"></pb-load>
</main>
</pb-page>
</template>
</pb-demo-snippet>
</body>
</html>