Skip to content

Commit 65fbd94

Browse files
committed
minor
1 parent ca12ae8 commit 65fbd94

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

services/static-webserver/client/source/class/osparc/ui/table/cellrenderer/FontButtonRenderer.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,34 @@ qx.Class.define("osparc.ui.table.cellrenderer.FontButtonRenderer", {
2323
},
2424

2525
properties: {
26-
id: {
26+
clickAction: {
2727
check: "String",
2828
nullable: false,
29-
init: "id",
29+
init: "clickAction",
3030
},
3131

3232
fontIcon: {
3333
check: "String",
3434
nullable: false,
35-
init: "fas fa-info",
35+
// init: "@FontAwesome5Solid/eye/14",
36+
init: "fa-solid fa-eye",
3637
},
3738
},
3839

3940
members: {
4041
// Override
4142
_getContentHtml: function(cellInfo) {
42-
const id = this.getId();
43+
const clickAction = this.getClickAction();
4344
const icon = this.getFontIcon();
45+
46+
// const resMgr = qx.util.ResourceManager.getInstance();
47+
// const iconUri = resMgr.toUri(icon);
48+
// <img src="${iconUri}" style="${iconStyle}" />
49+
50+
const iconStyle = "font-size:14px;";
4451
return `
45-
<button class="action-btn" data-action="${id}" data-row="${cellInfo.row}" title="View">
46-
<i class="${icon}" style="font-size:12px; line-height:1;">></i>
52+
<button data-action="${clickAction}" data-row="${cellInfo.row}" title="View">
53+
<span class="${icon}" style="${iconStyle}"></span>
4754
</button>
4855
`;
4956
}

0 commit comments

Comments
 (0)