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

Adding the Option delete function #36

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Lynx20wz
Copy link

My friend had a need to delete an item from CustomDropdownMenu and I implemented this function.
The delete_option function takes an argument text_option, which denotes the text on the option. If we find an item in the _options_list array that has such a text, we delete it from the array and do destroy. Hope this helps)

P.s this is my first ever Pull request

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.

2 participants