Skip to content

Commit

Permalink
Merge pull request #53 from theNorstroem/feat/tile-events
Browse files Browse the repository at this point in the history
feat: tiles are fireing a tile-clicked event now.
  • Loading branch information
veith authored May 31, 2022
2 parents c2335c9 + 3ccf795 commit e904c71
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@furo/ui5",
"description": "SAP UI5 Web Components data bindings for furo",
"version": "1.4.4",
"version": "1.5.0",
"homepage": "https://github.com/eclipse/eclipsefuro-web/tree/main/packages/furo-ui5",
"repository": "[email protected]:eclipse/eclipsefuro-web.git",
"author": {
Expand Down
3 changes: 3 additions & 0 deletions src/spaces/furo-ui5-launchpad-page-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import './furo-ui5-launchpad-section-renderer.js';
* `furo-ui5-launchpad-page-renderer`
* Renders a page of a space.
*
* > **Hint**: when you build a custom tile, do not forget to trigger the tile-clicked event.
*
* @fires {PointerEvent} tile-clicked - Fired from the default tiles inside of the rendered pages.
* @summary tile renderer
* @customElement furo-ui5-launchpad-page-renderer
* @appliesMixin FBP
Expand Down
2 changes: 1 addition & 1 deletion src/typerenderer/line-launchpad-launchtile.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class LineLaunchpadLaunchtile extends FieldNodeAdapter(FBP(LitElement)) {
render() {
// language=HTML
return html`
<a href="${this.target}" at-click="^^deep-dive"
<a href="${this.target}" at-click="^^tile-clicked"
>${this.display_name}
<span class="subheader">${this.subheader}</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/typerenderer/line-launchpad-monitortile.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class LineLaunchpadMonitortile extends FieldNodeAdapter(FBP(LitElement)) {
render() {
// language=HTML
return html`
<a href="${this.target}"
<a href="${this.target}" at-click="^^tile-clicked"
>${this.display_name}
<span class="subheader"
>${this.icon ? html`<ui5-icon name="${this.icon}"></ui5-icon>` : ''}
Expand Down
2 changes: 1 addition & 1 deletion src/typerenderer/tile-launchpad-launchtile.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class TileLaunchpadLaunchtile extends FieldNodeAdapter(FBP(LitElement)) {
render() {
// language=HTML
return html`
<a href="${this.target}" fn-focus="|--focus">
<a href="${this.target}" at-click="^^tile-clicked" fn-focus="|--focus">
<furo-vertical-flex>
<div class="title">${this.display_name}</div>
<div class="subheader">${this.subheader}</div>
Expand Down
2 changes: 1 addition & 1 deletion src/typerenderer/tile-launchpad-monitortile.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class TileLaunchpadMonitortile extends FieldNodeAdapter(FBP(LitElement)) {
render() {
// language=HTML
return html`
<a href="${this.target}" fn-focus="|--focus">
<a href="${this.target}" at-click="^^tile-clicked" fn-focus="|--focus">
<furo-vertical-flex>
<div class="title">${this.display_name}</div>
<div class="subheader">${this.subheader}</div>
Expand Down

0 comments on commit e904c71

Please sign in to comment.