I want to render a DetailsList
with all items in that list preselected. I pass a Selection
prop to the DetailsList
, but calling setAllSelected()
on the Selection from the component's constructor won't render all items as selected.
setAllSelected()
from an event handler would select all items as expected.setAllSelected()
from componentDidMount()
, but without success.DetailsList
component) before the Selection
can select them, but I have no idea how to force this.I have added a CodePen.
答案 0 :(得分:1)