Skip to content

v3 Table - toggle transitions on/off #1747

@eduardn

Description

@eduardn

🙋 Feature Request

A way for the table component transitions to be disabled/enabled.

🤔 Expected Behavior

Table should have a prop that can be used to toggle transitions on/off.

😯 Current Behavior

There is no way to do that currently.

💁 Possible Solution

Had a look through the code and it seems that the Table renders a TableVirtualizer that accepts a transitionDuration

transitionDuration: collection.body.props.isLoading && collection.size > 0 ? 0 : 500

and this is used in the Virtualizer to decide if the data should be animated when set

if (this._collection) {
this._runTransaction(() => {
this._collection = data;
}, this.transitionDuration > 0);

Setting that to 0 seems to disable the animations.

🧢 Your Company/Team

Adobe/Identity Mars

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions