Timestamp | -User | -Joke | -
---|---|---|
{joke.timestamp} | -{joke.user} | -{joke.fullJoke} | -
@${bean.scope.simpleName}
- ${bean.nonDefaultQualifiers.map(qualifier =>
- html`${this._qualifierRenderer(qualifier)}`
- )}
- ${bean.providerType.name}
- ${bean.declaringClass.simpleName}.${bean.memberName}()
`
- : html`${bean.memberName}
`
- }
- `;
- }
-
- _interceptorsRenderer(bean) {
- if (bean.interceptors && bean.interceptors.length > 0) {
- return html`${interceptor.interceptorClass.name}
- ${qualifier.simpleName}
`;
- }
-
- _camelize(str) {
- return str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function (match, index) {
- if (+match === 0)
- return "";
- return index === 0 ? match.toUpperCase() : match.toLowerCase();
- });
- }
-}
-customElements.define('qwc-arc-beans', QwcArcBeans);
-----
-<1> Import the Vaadin component you want to use
-<2> You can also import other functions if needed
-<3> There are some internal UI components that you can use, described below
-
-===== Using internal UI components
-
-Some https://github.com/quarkusio/quarkus/tree/main/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qui[internal UI components] (under the `qui` namespace) are available to make certain things easier:
-
-- Card
-- Badge
-- Alert
-- Code block
-- IDE Link
-
-====== Card
-
-Card component to display contents in a card
-
-[source,javascript]
-----
-import 'qui-card';
-----
-
-[source,html]
-----
-Badges wrap the Vaadin theme in a component. - See https://vaadin.com/docs/latest/components/badge for more info. -
-alert
with markup alert
with markup alert
with markup alert
with markup Timestamp | +User | +Joke | +
---|---|---|
{joke.timestamp} | +{joke.user} | +{joke.fullJoke} | +
@${bean.scope.simpleName}
+ ${bean.nonDefaultQualifiers.map(qualifier =>
+ html`${this._qualifierRenderer(qualifier)}`
+ )}
+ ${bean.providerType.name}
+ ${bean.declaringClass.simpleName}.${bean.memberName}()
`
+ : html`${bean.memberName}
`
+ }
+ `;
+ }
+
+ _interceptorsRenderer(bean) {
+ if (bean.interceptors && bean.interceptors.length > 0) {
+ return html`${interceptor.interceptorClass.name}
+ ${qualifier.simpleName}
`;
+ }
+
+ _camelize(str) {
+ return str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function (match, index) {
+ if (+match === 0)
+ return "";
+ return index === 0 ? match.toUpperCase() : match.toLowerCase();
});
- });
- {/script}
- {#title}Cache{/title}// <4>
- {#body}// <5>
- Name | -Size | -
---|---|
- {cacheInfo.name} - | -- - | -
Badges wrap the Vaadin theme in a component. + See https://vaadin.com/docs/latest/components/badge for more info. +
+alert
with markup alert
with markup alert
with markup alert
with markup This document +
This document {#include $strong val='contains' /} <2> -a lot of +a lot of {#include $strong val='information' /} <3> !
---- @@ -1320,9 +1322,9 @@ The snippet above renders something like: [source,html] ----This document +
This document contains -a lot of +a lot of information !
---- @@ -1408,11 +1410,11 @@ template.data(foo).renderAsync().whenComplete((result, failure) -> { <1> } }; ---- -<1> Register a callback that is executed once the rendering is finished. +<1> Register a callback that is executed once the rendering is finished. There are also two methods that return https://smallrye.io/smallrye-mutiny/[Mutiny] types. `TemplateInstance.createUni()` returns a new `Uni