updating UI documentation

Summary:
adding documentation for more of our UI components.

Deleted some unused components, which were not working anyways.

Reviewed By: jknoxville

Differential Revision: D12896109

fbshipit-source-id: 959c7864240883869ad67283f80a3c189b94bf00
This commit is contained in:
Daniel Büchele
2018-11-05 03:10:27 -08:00
committed by Facebook Github Bot
parent 640dee6645
commit 95a7298d21
27 changed files with 116 additions and 135 deletions

View File

@@ -390,4 +390,8 @@ const Searchable = (
}
};
/**
* Higher-order-component that allows adding a searchbar on top of the wrapped
* component. See SearchableManagedTable for usage with a table.
*/
export default Searchable;

View File

@@ -17,10 +17,10 @@ import deepEqual from 'deep-equal';
type Props = {|
...ManagedTableProps,
...SearchableProps,
/** Reference to the table */
innerRef?: (ref: React.ElementRef<*>) => void,
/** Filters that are added to the filterbar by default */
defaultFilters: Array<Filter>,
filter: empty,
filterValue: empty,
|};
type State = {
@@ -103,4 +103,8 @@ class SearchableManagedTable extends PureComponent<Props, State> {
}
}
/**
* Table with filter and searchbar, supports all properties a ManagedTable
* and Searchable supports.
*/
export default Searchable(SearchableManagedTable);