mirror of https://github.com/rancher/dashboard.git
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:
parent
9c747f1c4f
commit
31362577fe
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue