clear empty comment, remove expanded type + add comment about dupe

- fixes bad definition of getValue?: () => any (should accept a prop)
This commit is contained in:
Richard Cox 2025-09-18 11:30:24 +01:00
parent 9c747f1c4f
commit 31362577fe
2 changed files with 3 additions and 16 deletions

View File

@ -317,7 +317,6 @@ export default {
// add custom table columns provided by the extensions ExtensionPoint.TABLE_COL hook
// gate it so that we prevent errors on older versions of dashboard
if (this.$store.$plugin?.getUIConfig) {
//
const extensionCols = getApplicableExtensionEnhancements(this, ExtensionPoint.TABLE_COL, TableColumnLocation.RESOURCE, this.$route);
// Try and insert the columns before the Age column

View File

@ -130,20 +130,8 @@ export type Card = {
component: Function;
};
export type TableColumn = {
name?: string;
label?: string;
labelKey?: string;
sort?: string | string[];
search?: string | string[];
value?: string;
getValue?: () => any;
width?: number;
default?: string;
formatter?: string;
canBeVariable?: boolean;
defaultSort?: boolean;
};
// Duplication of HeaderOptions?
export type TableColumn = any;
/** Definition of a tab (options that can be passed when defining an extension tab enhancement) */
export type Tab = {
@ -341,7 +329,7 @@ export interface HeaderOptions {
formatterOpts?: any;
/**
* Provide a function which accets a row and returns the value that should be displayed in the column
* Provide a function which accepts a row and returns the value that should be displayed in the column
* @param row This can be any value which represents the row
* @returns Can return {@link string | number | null | undefined} to display in the column
*/