Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a possibility to create steps dynamically? #4

Closed
FlobeiGM opened this issue Sep 7, 2022 · 1 comment
Closed

Is there a possibility to create steps dynamically? #4

FlobeiGM opened this issue Sep 7, 2022 · 1 comment

Comments

@FlobeiGM
Copy link

FlobeiGM commented Sep 7, 2022

Many thanks for the great project! Is there a possibility to create steps dynamically? I am working on an application where the steps should be loaded dynamically from an API. However, the number and title of the steps is always different.

@inxilpro
Copy link
Contributor

inxilpro commented Sep 7, 2022

If you want to create them dynamically, the best bet is to generate the Alpine markup via a server-side language like PHP, or use something like React or Vue. You could potentially also use the x-for directive, but I think in the end if you need that kind of dynamic behavior on the client, Alpine may not be the best tool for the job.

@inxilpro inxilpro closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants