Skip to content

Passing props to the item used in scrollItem #5

@RudysCalderinDTx

Description

@RudysCalderinDTx

Hi,
Is there a way to pass props to the component that is used as value of the scrollItem property?
I have look at the code and maybe, if there is not a way I have missed, it can be possible adding a v-bind in lines 233 and 250:
<component @itemLoaded="itemLoaded(item)" :is="props.scrollItem" :itemData="item" />

Something like this:
<component @itemLoaded="itemLoaded(item)" :is="props.scrollItem" :itemData="item" v-bind="props.childProps" />

childProps would be the props the item component accepts.
Ex: child-props="{ name: '', id: '1', onClickHandler: () => {}, . . . }"

By the way, nice job!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions