diff options
| author | bobzel <zzzman@gmail.com> | 2021-12-02 15:40:30 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-12-02 15:40:30 -0500 |
| commit | f92b490d3d54f5847f5f434a4105e88717531527 (patch) | |
| tree | 7b747c6a068347318085a95cf4eb87f9f3f2ecbc /src/client/views/collections/collectionLinear/CollectionLinearView.tsx | |
| parent | 220cedfb9d013127d89756bcc85ac886a0d723da (diff) | |
| parent | 1b6e83ce9b56b773165387ac5f306e6807dc2900 (diff) | |
Merge branch 'master' of https://github.com/brown-dash/Dash-Web
Diffstat (limited to 'src/client/views/collections/collectionLinear/CollectionLinearView.tsx')
| -rw-r--r-- | src/client/views/collections/collectionLinear/CollectionLinearView.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/views/collections/collectionLinear/CollectionLinearView.tsx b/src/client/views/collections/collectionLinear/CollectionLinearView.tsx index 18a715edf..d67122eff 100644 --- a/src/client/views/collections/collectionLinear/CollectionLinearView.tsx +++ b/src/client/views/collections/collectionLinear/CollectionLinearView.tsx @@ -24,6 +24,14 @@ import "./CollectionLinearView.scss"; type LinearDocument = makeInterface<[typeof documentSchema,]>; const LinearDocument = makeInterface(documentSchema); +/** + * CollectionLinearView is the class for rendering the horizontal collection + * of documents, it useful for horizontal menus. It can either be expandable + * or not using the linearViewExpandable field. + * It is used in the following locations: + * - It is used in the popup menu on the bottom left (see docButtons() in MainView.tsx) + * - It is used for the context sensitive toolbar at the top (see contMenuButtons() in CollectionMenu.tsx) + */ @observer export class CollectionLinearView extends CollectionSubView(LinearDocument) { @observable public addMenuToggle = React.createRef<HTMLInputElement>(); |
