Skip to content

full sized window with async arg #1474

Answered by JosXa
benschlegel asked this question in Q&A
Discussion options

You must be logged in to vote

This is nice:

await arg(
  {
    placeholder: "Select a Star Wars Character",
    async onInit() {
      // Load data here
      await wait(1200)

      await setChoices([{ name: "Yoda" }, { name: "Anakin" }])
    },
  },
  [{ name: "Loading...", onSubmit: () => preventSubmit }],
)

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@benschlegel
Comment options

@JosXa
Comment options

@JosXa
Comment options

@JosXa
Comment options

Answer selected by benschlegel
@benschlegel
Comment options

@JosXa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants