Skip to content

Change allowedDirections Dynamically #41

Description

@jeromestsauver

Great library - I have been trying to only allow certain 'types' of cards to be swiped in one direction and other 'types' in the opposite direction.

Is it possible to update the configuration of the stackConfig based on the "type" of card on the top of the stack?

Currently I'm able to detect the type of card, and then set the stackConfig.allowedDirections array to what I would like it to be. However it doesn't seem to effect behavior of the stack.

Is there a refresh that is needed?

Any direction you could provide would be very much appreciated.

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