Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 340: | Line 340: | ||
} | } | ||
); | ); | ||
}); | }); | ||
Line 385: | Line 384: | ||
return dct; | return dct; | ||
}); | }); | ||
return dctList; | return dctList; | ||
Line 560: | Line 557: | ||
cssClass: 'functions-cell', | cssClass: 'functions-cell', | ||
formatter: function (cell) { | formatter: function (cell) { | ||
const | const out = Array.from(cell.getValue().keys()) | ||
.map(func => '<img class="func-img" src="' + fnImages[func] + | |||
'" data-value="' + func + | '" data-value="' + func + | ||
'" alt="' + func + | '" alt="' + func + | ||
Line 569: | Line 564: | ||
'">') | '">') | ||
.join(''); | .join(''); | ||
return | |||
// const order = Object.keys(fnImages); | |||
// const output = cell.getValue() | |||
// .sort((a, b) => order.indexOf(a) - order.indexOf(b)) | |||
// .map(func => '<img class="func-img" src="' + fnImages[func] + | |||
// '" data-value="' + func + | |||
// '" alt="' + func + | |||
// '" title="' + func + | |||
// '">') | |||
// .join(''); | |||
return out; | |||
} | } | ||
}, | }, |
Revision as of 16:26, 17 November 2022
Development verstion of the DCT List.
Not ready for production!