declare var _default: import("../../Utils/ComponentUtils").ComponentWrapper & { wrappedComponentRef?: ((instance: AnswerTable | null) => void) | React.RefObject | null | undefined; }>; export default _default; declare class AnswerTable extends React.Component { constructor(props: any); handleSort(datatableSorting: any): void; handleOpenAttributeSelectorClick(): void; handleAttributeSelectorClose(): void; handleAttributeSelectorSubmit(e: any): void; /** * Filter unchecked checkboxes and map to attributes */ togglePendingAttribute(attributeName: any, isVisible: any): void; _getInitialAttributeSelectorState(): { pendingVisibleAttributes: any; attributeSelectorOpen: boolean; }; } declare namespace AnswerTable { export namespace propTypes { export const meta: PropTypes.Validator; export const displayInfo: PropTypes.Validator; export const records: PropTypes.Validator; export const recordClass: PropTypes.Validator; export const allAttributes: PropTypes.Validator; export const visibleAttributes: PropTypes.Validator; export const height: PropTypes.Validator; export const history: PropTypes.Validator; export const onSort: PropTypes.Requireable<(...args: any[]) => any>; export const onMoveColumn: PropTypes.Requireable<(...args: any[]) => any>; export const onChangeColumns: PropTypes.Requireable<(...args: any[]) => any>; export const onNewPage: PropTypes.Requireable<(...args: any[]) => any>; export const onRecordClick: PropTypes.Requireable<(...args: any[]) => any>; } export namespace defaultProps { export { noop as onSort }; export { noop as onMoveColumn }; export { noop as onChangeColumns }; export { noop as onNewPage }; export { noop as onRecordClick }; } } import React from "react"; import PropTypes from "prop-types"; /** * Generic table with UI features: * * - Sort columns * - Move columns * - Show/Hide columns * - Paging * * * NB: A View-Controller will need to pass handlers to this component: * * - onSort(columnName: string, direction: string(asc|desc)) * - onMoveColumn(columnName: string, newPosition: number) * - onShowColumns(columnNames: Array) * - onHideColumns(columnNames: Array) * - onNewPage(offset: number, numRecords: number) */ /** * Function that doesn't do anything. This is the default for many * optional handlers. We can do an equality check as a form of feature * detection. E.g., if onSort === noop, then we won't enable sorting. */ declare function noop(): void; //# sourceMappingURL=AnswerTable.d.ts.map