We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80e0a8e commit 7309b3cCopy full SHA for 7309b3c
packages/ve-table/src/util/index.js
@@ -26,6 +26,18 @@ export function getRowKey(rowData, rowKeyFieldName) {
26
return result;
27
}
28
29
+/*
30
+ * @getColumnByColkey
31
+ * @desc get column by col key
32
+ * @param {string} rowKeyFieldName - row key field name
33
+ */
34
+export function getColumnByColkey(colKey, colgroups) {
35
+ if (colKey) {
36
+ return colgroups.find((x) => x.key === colKey);
37
+ }
38
+ return null;
39
+}
40
+
41
/*
42
* @getDomResizeObserverCompKey
43
* @desc get dom resize observer comp key
0 commit comments