File tree Expand file tree Collapse file tree 3 files changed +54
-5
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 3 files changed +54
-5
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ qx.Class.define("osparc.jobs.JobsTable", {
3636
3737 Object . values ( this . self ( ) . COLS ) . forEach ( col => columnModel . setColumnWidth ( col . column , col . width ) ) ;
3838
39- const imageRenderer = new qx . ui . table . cellrenderer . Image ( ) ;
40- columnModel . setDataCellRenderer ( this . self ( ) . COLS . INFO . column , imageRenderer ) ;
39+ const fontButtonRenderer = new osparc . ui . table . cellrenderer . FontButtonRenderer ( ) ;
40+ columnModel . setDataCellRenderer ( this . self ( ) . COLS . INFO . column , fontButtonRenderer ) ;
4141 } ,
4242
4343 statics : {
Original file line number Diff line number Diff line change 1+ /* ************************************************************************
2+
3+ osparc - the simcore frontend
4+
5+ https://osparc.io
6+
7+ Copyright:
8+ 2035 IT'IS Foundation, https://itis.swiss
9+
10+ License:
11+ MIT: https://opensource.org/licenses/MIT
12+
13+ Authors:
14+ * Odei Maiz (odeimaiz)
15+
16+ ************************************************************************ */
17+
18+ qx . Class . define ( "osparc.ui.table.cellrenderer.FontButtonRenderer" , {
19+ extend : osparc . ui . table . cellrenderer . Html ,
20+
21+ construct : function ( id , icon ) {
22+ this . base ( arguments ) ;
23+ } ,
24+
25+ properties : {
26+ id : {
27+ check : "String" ,
28+ nullable : false ,
29+ init : "id" ,
30+ } ,
31+
32+ fontIcon : {
33+ check : "String" ,
34+ nullable : false ,
35+ init : "fas fa-info" ,
36+ } ,
37+ } ,
38+
39+ members : {
40+ // Override
41+ _getContentHtml : function ( cellInfo ) {
42+ const id = this . getId ( ) ;
43+ const icon = this . getFontIcon ( ) ;
44+ 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>
47+ </button>
48+ ` ;
49+ }
50+ }
51+ } ) ;
Original file line number Diff line number Diff line change 2020 */
2121qx . Class . define ( "osparc.ui.table.cellrenderer.Html" , {
2222 extend : qx . ui . table . cellrenderer . Html ,
23- construct : function ( ) {
24- this . base ( arguments ) ;
25- } ,
23+
2624 members : {
2725 // Override
2826 _getCellStyle : function ( cellInfo ) {
You can’t perform that action at this time.
0 commit comments