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

Reuse a component input in the command. #45

Open
narknon opened this issue Sep 12, 2024 · 2 comments
Open

Reuse a component input in the command. #45

narknon opened this issue Sep 12, 2024 · 2 comments

Comments

@narknon
Copy link

narknon commented Sep 12, 2024

I'd like to be able to ask someone to input a number once (e.g., 99) and use it in the 3 places the command requires the pakchunk name. I couldn't figure out any syntax to reuse an input component.

@matyalatte
Copy link
Owner

Hi, you can use id to name components.

{
    "label": "IDs",
    "command": "echo %x% %x% %x%",
    "components": [
        {
            "type": "text",
            "label": "Value of x",
            "id": "x"
        }
    ]
}

ids

@narknon
Copy link
Author

narknon commented Sep 18, 2024

Awesome, thank you.

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