aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionViewChromes.tsx
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2020-05-26 15:48:46 +0530
committerusodhi <61431818+usodhi@users.noreply.github.com>2020-05-26 15:48:46 +0530
commitf3e27cbe32b53de551ed90aab71085f343f7efd4 (patch)
tree08a124e78b5cb85e81d17f1a91ae3f98caeabcb3 /src/client/views/collections/CollectionViewChromes.tsx
parent5ba1920aba81abbd4d5680a4f8e42bb19c5f89e6 (diff)
modified delete
Diffstat (limited to 'src/client/views/collections/CollectionViewChromes.tsx')
-rw-r--r--src/client/views/collections/CollectionViewChromes.tsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionViewChromes.tsx b/src/client/views/collections/CollectionViewChromes.tsx
index def20ae9b..7e86995ac 100644
--- a/src/client/views/collections/CollectionViewChromes.tsx
+++ b/src/client/views/collections/CollectionViewChromes.tsx
@@ -540,6 +540,8 @@ export class CollectionGridViewChrome extends React.Component<CollectionViewChro
}
}
+ onCheck = (event: React.ChangeEvent<HTMLInputElement>) => this.props.CollectionView.props.Document.flexGrid = event.target.checked;
+
render() {
return (
<div className="collectionTreeViewChrome-cont">
@@ -555,6 +557,13 @@ export class CollectionGridViewChrome extends React.Component<CollectionViewChro
</span>
<input className="collectionGridViewChrome-entryBox" type="number" placeholder={this.props.CollectionView.props.Document.rowHeight as string} onKeyDown={this.onRowHeightEnter} />
</span>
+ <span>
+ <span className="icon-background">
+ <FontAwesomeIcon icon="arrows-alt" size="1x" />
+ </span>
+ <input type="checkbox" onChange={this.onCheck} defaultChecked={this.props.CollectionView.props.Document.flexGrid as boolean} />
+ <label>Flexible Grid</label>
+ </span>
</div>
);
}