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

change(input/event): Added "vorpinputs:advancedInput" #8

Merged
merged 4 commits into from
Mar 27, 2022

Conversation

Local9
Copy link
Member

@Local9 Local9 commented Mar 27, 2022

Example:

local myInput = {
    type = "enableinput",
    style = "block",
    button = "button",
    placeholder = "placeHolder?",
    attributes = {
        type = "text",
        pattern = "[A-Za-z].{3,}",
        value = "myDefaultValue",
        title = "Must only contain letters, and at least 3 or more characters."
    }
};

TriggerEvent("vorpinputs:advancedInput", json.encode(myInput), function(result) 
    print(result);
end);

@Local9 Local9 merged commit 177fb82 into master Mar 27, 2022
@Local9 Local9 deleted the advanced-input branch March 27, 2022 12:44
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

Successfully merging this pull request may close these issues.

1 participant