@cellaware/utils 8.3.2 → 8.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chatwms/datagrid.js +5 -5
- package/package.json +1 -1
package/dist/chatwms/datagrid.js
CHANGED
|
@@ -848,6 +848,11 @@ export function datagridToString(datagridState, rowCnt) {
|
|
|
848
848
|
}
|
|
849
849
|
const totalRowCnt = datagridState.adjRowData.length;
|
|
850
850
|
rowCnt = rowCnt ?? totalRowCnt;
|
|
851
|
+
if (rowCnt < totalRowCnt) {
|
|
852
|
+
const message = `Displaying the first ${rowCnt} rows.`;
|
|
853
|
+
htmlBuf += `<p style="font-style: italic;">${message}</p>`;
|
|
854
|
+
markdownBuf += `\n*${message}*\n\n`;
|
|
855
|
+
}
|
|
851
856
|
// Header:
|
|
852
857
|
htmlBuf += '<table>\n\t<thead>\n\t\t<tr>';
|
|
853
858
|
let columns = [];
|
|
@@ -928,11 +933,6 @@ export function datagridToString(datagridState, rowCnt) {
|
|
|
928
933
|
rowIdx++;
|
|
929
934
|
}
|
|
930
935
|
htmlBuf += '\n\t</tbody>\n</table>';
|
|
931
|
-
if (rowCnt < totalRowCnt) {
|
|
932
|
-
const message = `Displaying the first ${rowCnt} rows.`;
|
|
933
|
-
htmlBuf += `<b style="position: relative; top: -8px; left: 8px; font-style: italic;">${message}</b>`;
|
|
934
|
-
markdownBuf += `\n**${message}**\n\n`;
|
|
935
|
-
}
|
|
936
936
|
return {
|
|
937
937
|
html: htmlBuf,
|
|
938
938
|
markdown: markdownBuf
|