You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allows for defining multiple resources on a single event,
so that the event can display in multiple resource columns
simultaneously
Co-authored-by: Jim Hlad <[email protected]>
Co-authored-by: Jim Hlad <[email protected]>
jquense#2405jquense#1649
The calendar below uses the <LinkTokind="props"story="resource-id-accessor">resourceIdAccessor</LinkTo>, <LinkTokind="props"story="resource-title-accessor">resourceTitleAccessor</LinkTo> and <LinkTokind="props"story="resources">resources</LinkTo> props to show events scheduled for different resources.
60
+
<br/>
61
+
Events can be mapped to a single resource, or multiple resources.
Copy file name to clipboardExpand all lines: stories/props/API.stories.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -280,7 +280,7 @@ Resource {
280
280
Example
281
281
</LinkTo>
282
282
283
-
Provides a unique identifier for each resource in the <LinkTokind="props"story="resources">resources</LinkTo> array
283
+
Provides a unique identifier, or an array of unique identifiers, for each resource in the <LinkTokind="props"story="resources">resources</LinkTo> array
Copy file name to clipboardExpand all lines: stories/props/resourceIdAccessor.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,6 @@ import LinkTo from '@storybook/addon-links/react'
5
5
6
6
- type: `string | function (resource: Object) => string | number // must be unique`
7
7
8
-
Provides a unique identifier for each resource in the <LinkTokind="props"story="resources">resources</LinkTo> array
8
+
Provides a unique identifier, or an array of unique identifiers, for each resource in the <LinkTokind="props"story="resources">resources</LinkTo> array
0 commit comments