jitz-sharepoint-utilities 2.0.20 → 2.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/controls/JitzGrid.tsx
CHANGED
@@ -445,9 +445,9 @@ export class JitzGrid<T extends IModel> extends React.Component<
|
|
445
445
|
this.state.showingItems.length > 0) && (
|
446
446
|
<div className="ms-Grid-row">
|
447
447
|
<div className="ms-Grid-col ms-sm12 ms-md12 ms-lg12">
|
448
|
-
|
449
|
-
<div className={this.props.
|
450
|
-
{this.
|
448
|
+
{this.state.displayMode === DisplayMode.Grid && (
|
449
|
+
<div className={this.props.outerGridClass || ""}>
|
450
|
+
<div className={this.props.fixedGridWidthCss || ""}>
|
451
451
|
<DetailsList
|
452
452
|
items={
|
453
453
|
this.state.showingItems != undefined
|
@@ -471,9 +471,9 @@ export class JitzGrid<T extends IModel> extends React.Component<
|
|
471
471
|
}
|
472
472
|
selection={this._selection}
|
473
473
|
/>
|
474
|
-
|
474
|
+
</div>
|
475
475
|
</div>
|
476
|
-
|
476
|
+
)}
|
477
477
|
{this.state.displayMode === DisplayMode.Tile &&
|
478
478
|
this.state.showingItems != undefined &&
|
479
479
|
this.state.showingItems.length > 0 &&
|
package/lib/controls/JitzGrid.js
CHANGED
@@ -567,12 +567,13 @@ var JitzGrid = /** @class */ (function (_super) {
|
|
567
567
|
(this.state.showingItems == undefined ||
|
568
568
|
this.state.showingItems.length > 0) && (React.createElement("div", { className: "ms-Grid-row" },
|
569
569
|
React.createElement("div", { className: "ms-Grid-col ms-sm12 ms-md12 ms-lg12" },
|
570
|
-
React.createElement("div", { className: this.props.outerGridClass || "" },
|
571
|
-
React.createElement("div", { className: this.props.fixedGridWidthCss || "" },
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
570
|
+
this.state.displayMode === DisplayMode.Grid && (React.createElement("div", { className: this.props.outerGridClass || "" },
|
571
|
+
React.createElement("div", { className: this.props.fixedGridWidthCss || "" },
|
572
|
+
React.createElement(react_1.DetailsList, { items: this.state.showingItems != undefined
|
573
|
+
? this.state.showingItems
|
574
|
+
: [], setKey: "Id", columns: this.state.columns, onRenderItemColumn: this._renderItemColumn, onColumnHeaderClick: this._onColumnClick, onItemInvoked: this._onItemInvoked, onShouldVirtualize: function () { return false; }, onColumnHeaderContextMenu: this._onColumnHeaderContextMenu, onActiveItemChanged: function (item, index) {
|
575
|
+
_this.itemSelected(item, index);
|
576
|
+
}, selectionMode: this.props.selectionMode || react_1.SelectionMode.none, selection: this._selection })))),
|
576
577
|
this.state.displayMode === DisplayMode.Tile &&
|
577
578
|
this.state.showingItems != undefined &&
|
578
579
|
this.state.showingItems.length > 0 &&
|