Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onClick: createNewItemAtIndex(typeof index === 'undefined' ? 0 : index + 1),
})}
/>
);
},
},
];
return (
{items && items.length > 0 && (
)}
{children && children({ onChange, createNewItemAtIndex })}
);
}
return (
{ return false; }}
layoutMode={DetailsListLayoutMode.justified}
skipViewportMeasures={true}
/>
<button title="Cancel">
);
}
catch (e) {
debugger;
}
}
</button>
},
{
key: 'layoutMode',
text: 'Layout mode',
subMenuProps: {
items: [
{
key: DetailsListLayoutMode[DetailsListLayoutMode.fixedColumns],
text: 'Fixed columns',
canCheck: true,
checked: layoutMode === DetailsListLayoutMode.fixedColumns,
onClick: this._onLayoutChanged,
data: DetailsListLayoutMode.fixedColumns
},
{
key: DetailsListLayoutMode[DetailsListLayoutMode.justified],
text: 'Justified columns',
canCheck: true,
checked: layoutMode === DetailsListLayoutMode.justified,
onClick: this._onLayoutChanged,
data: DetailsListLayoutMode.justified
}
]
}
},
{
key: 'selectionMode',
text: 'Selection mode',
subMenuProps: {
items: [
{
key: SelectionMode[SelectionMode.none],
{strings.CustomListNo}
{this.props.fields != null ?
<div style="{{marginTop:">
</div>
: '' }
: '' }
text: 'Layout mode',
subMenuProps: {
items: [
{
key: DetailsListLayoutMode[DetailsListLayoutMode.fixedColumns],
text: 'Fixed columns',
canCheck: true,
checked: layoutMode === DetailsListLayoutMode.fixedColumns,
onClick: this._onLayoutChanged,
data: DetailsListLayoutMode.fixedColumns
},
{
key: DetailsListLayoutMode[DetailsListLayoutMode.justified],
text: 'Justified columns',
canCheck: true,
checked: layoutMode === DetailsListLayoutMode.justified,
onClick: this._onLayoutChanged,
data: DetailsListLayoutMode.justified
}
]
}
},
{
key: 'selectionMode',
text: 'Selection mode',
subMenuProps: {
items: [
{
key: SelectionMode[SelectionMode.none],
text: 'None',
canCheck: true,
checked: selectionMode === SelectionMode.none,
super(props);
this._getCommandItems = memoizeFunction(this._getCommandItems);
this._allItems = createListItems(ITEMS_COUNT);
this._selection = new Selection({
onSelectionChanged: this._onItemsSelectionChanged
});
this._selection.setItems(this._allItems, false);
this.state = {
items: this._allItems,
selectionCount: 0,
groups: undefined,
groupItemLimit: DEFAULT_ITEM_LIMIT,
layoutMode: DetailsListLayoutMode.justified,
constrainMode: ConstrainMode.horizontalConstrained,
selectionMode: SelectionMode.multiple,
canResizeColumns: true,
checkboxVisibility: CheckboxVisibility.onHover,
columns: this._buildColumns(this._allItems, true, this._onColumnClick, '', undefined, undefined, this._onColumnContextMenu),
contextualMenuProps: undefined,
sortedColumnKey: 'name',
isSortedDescending: false,
isLazyLoaded: false,
isHeaderVisible: true
};
}