Skip to main content

DocsTable

Home > @backstage/plugin-techdocs > DocsTable

Component which renders a table documents

Signature:

DocsTable: {
(props: DocsTableProps): React.JSX.Element | null;
columns: {
createNameColumn(): TableColumn<DocsTableRow>;
createOwnerColumn(): TableColumn<DocsTableRow>;
createKindColumn(): TableColumn<DocsTableRow>;
createTypeColumn(): TableColumn<DocsTableRow>;
};
actions: {
createCopyDocsUrlAction(copyToClipboard: Function): (row: DocsTableRow) => {
icon: () => React.JSX.Element;
tooltip: string;
onClick: () => any;
};
createStarEntityAction(isStarredEntity: Function, toggleStarredEntity: Function): (row: DocsTableRow) => {
cellStyle: {
paddingLeft: string;
};
icon: () => React.JSX.Element;
tooltip: string;
onClick: () => any;
};
};
}