@uportal/api-template-vue
api-template-vue
Installation
# install with npm
npm install @uportal/api-template-vue
# install with yarn
yarn add @uportal/api-template-vue
install with maven
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>uportal__api-template-vue</artifactId>
<version>{version number goes here}</version>
</dependency>
install with gradle
compile 'org.webjars.npm:uportal__api-template-vue:{version number goes here}'
Usage as Web Component
The component requires a data-api-url (URL to acquire a JSON payload).
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/@uportal/api-template-vue"></script>
<api-template-vue data-api-url="/uPortal/api/v5-0/people/me">
<div class="card">
<div class="card-body">
<h3 class="card-title">{{ data.displayName[0] }}</h3>
<table class="table">
<caption>
User attributes
</caption>
<tbody>
<tr>
<td>username:</td>
<td>{{ data.username[0] }}</td>
</tr>
<tr>
<td>email:</td>
<td>{{ data.mail[0] }}</td>
</tr>
<tr>
<td>Phone:</td>
<td>{{ data.telephoneNumber[0] }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</api-template-vue>
Options
data-api-url(required, string): URL of the REST API that provides JSON data to the template.
Slot Content
The default slot defines the Vue-based template containing the markup that will appear on the page.
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.40.1 | ^2.5.21 | ||
| 1.40.0 | ^2.5.21 | ||
| 1.39.0 | ^2.5.21 | ||
| 1.38.1 | ^2.5.21 | ||
| 1.37.0 | ^2.5.21 | ||
| 1.36.0 | ^2.5.21 | ||
| 1.35.0 | ^2.5.21 | ||
| 1.34.3 | ^2.5.21 | ||
| 1.34.2 | ^2.5.21 | ||
| 1.34.1 | ^2.5.21 | ||
| 1.34.0 | ^2.5.21 | ||
| 1.33.2 | ^2.5.21 | ||
| 1.33.1 | ^2.5.21 | ||
| 1.33.0 | ^2.5.21 | ||
| 1.32.1 | ^2.5.21 | ||
| 1.32.0 | ^2.5.21 | ||
| 1.31.1 | ^2.5.21 | ||
| 1.31.0 | ^2.5.21 | ||
| 1.30.1 | ^2.5.21 | ||
| 1.30.0 | ^2.5.21 | ||
| 1.29.0 | ^2.5.21 | ||
| 1.28.0 | ^2.5.21 | ||
| 1.27.0 | ^2.5.21 | ||
| 1.26.2 | ^2.5.21 | ||
| 1.26.1 | ^2.5.21 | ||
| 1.26.0 | ^2.5.21 | ||
| 1.25.0 | ^2.5.21 | ||
| 1.24.0 | ^2.5.21 | ||
| 1.23.0 | ^2.5.21 | ||
| 1.22.1 | ^2.5.21 |
Showing the latest 30 of 31. See every release on npm