Skip to content

Selecting Specific option #176

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

Open
rasselll opened this issue Jun 24, 2018 · 0 comments
Open

Selecting Specific option #176

rasselll opened this issue Jun 24, 2018 · 0 comments

Comments

@rasselll
Copy link

rasselll commented Jun 24, 2018

<ModalDropdown options={['Edit', 'Delete']}
onSelect={(idx, index) => this._dropdown_6_onSelect(0, "Edit")}

_dropdown_6_onSelect(idx, value) {
alert("Edit");
}

Not sure how selecting a specific option is supposed to work, i tired selecting the Edit option, although the above code just makes the function alert for both options. How do i make it so the function only happens for a specific option such as "Edit"

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

1 participant