Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

feat(List): add proper support for children API #2207

Merged
merged 20 commits into from
Feb 14, 2020
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ import { List } from '@fluentui/react'

const ListExample = () => (
<List>
<List.Item header="Program the sensor to the SAS alarm through the haptic SQL card!" />
<List.Item header="Use the online FTP application to input the multi-byte application!" />
<List.Item header="The GB pixel is down, navigate the virtual interface!" />
<List.Item
header="Program the sensor to the SAS alarm through the haptic SQL card!"
index={0}
/>
<List.Item
header="Use the online FTP application to input the multi-byte application!"
index={1}
/>
<List.Item header="The GB pixel is down, navigate the virtual interface!" index={2} />
</List>
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ const ListExample = () => (
<List.Item
content="Program the sensor to the SAS alarm through the haptic SQL card!"
contentMedia="7:26:56 AM"
index={0}
/>
<List.Item
content="Use the online FTP application to input the multi-byte application!"
contentMedia="11:30:17 PM"
index={1}
/>
<List.Item
content="The GB pixel is down, navigate the virtual interface!"
contentMedia="5:22:40 PM"
index={2}
/>
</List>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@ const ListExample = () => (
content="Program the sensor to the SAS alarm through the haptic SQL card!"
endMedia={ellipsis}
selectable
index={0}
/>
<List.Item
content="Use the online FTP application to input the multi-byte application!"
endMedia={ellipsis}
selectable
index={1}
/>
<List.Item
content="The GB pixel is down, navigate the virtual interface!"
endMedia={ellipsis}
selectable
index={2}
/>
</List>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { List } from '@fluentui/react'

const ListExample = () => (
<List>
<List.Item header="Irving Kuhic" />
<List.Item header="Skyler Parks" />
<List.Item header="Dante Schneider" />
<List.Item header="Irving Kuhic" index={0} />
<List.Item header="Skyler Parks" index={1} />
<List.Item header="Dante Schneider" index={2} />
</List>
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ const ListExample = () => (
<List.Item
header="Irving Kuhic"
content="Program the sensor to the SAS alarm through the haptic SQL card!"
index={0}
/>
<List.Item
header="Skyler Parks"
content="Use the online FTP application to input the multi-byte application!"
index={1}
/>
<List.Item
header="Dante Schneider"
content="The GB pixel is down, navigate the virtual interface!"
index={2}
/>
</List>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { List } from '@fluentui/react'

const ListExample = () => (
<List>
<List.Item header="Irving Kuhic" headerMedia="7:26:56 AM" />
<List.Item header="Skyler Parks" headerMedia="11:30:17 PM" />
<List.Item header="Dante Schneider" headerMedia="5:22:40 PM" />
<List.Item header="Irving Kuhic" headerMedia="7:26:56 AM" index={0} />
<List.Item header="Skyler Parks" headerMedia="11:30:17 PM" index={1} />
<List.Item header="Dante Schneider" headerMedia="5:22:40 PM" index={2} />
</List>
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,21 @@ const ListExampleMedia = () => (
header="Irving Kuhic"
headerMedia="7:26:56 AM"
content="Program the sensor to the SAS alarm through the haptic SQL card!"
index={0}
/>
<List.Item
media={<Image src="public/images/avatar/small/steve.jpg" avatar />}
header="Skyler Parks"
headerMedia="11:30:17 PM"
content="Use the online FTP application to input the multi-byte application!"
index={1}
/>
<List.Item
media={<Image src="public/images/avatar/small/nom.jpg" avatar />}
header="Dante Schneider"
headerMedia="5:22:40 PM"
content="The GB pixel is down, navigate the virtual interface!"
index={2}
/>
</List>
)
Expand Down
Loading