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

refactor list and menu items #2855

Merged
merged 14 commits into from
Apr 11, 2024
Merged

refactor list and menu items #2855

merged 14 commits into from
Apr 11, 2024

Conversation

codingpaula
Copy link
Contributor

This PR updates the existing list item to be used with the menu or a list and with more features:

  • The menu and the context_menu get a new parameter auto_close that previously was given to the menu_item.
  • The menu_item element is deprecated in favor of the updated item.
  • The updated item can now be given a text which comes in handy when creating simple lists that don't need the functionality provided by item_section and item_label. Initializing an item with text, adds a q-item-section with the text under the hood for better styling.
  • The item_section can also receive a text as a parameter. This aligns its functionality more closely to Quasar's item_section.
  • The item, item_section and item_label are moved to their own file.
  • The documentation and tests are updated to use the new item and item_section consistently.

@codingpaula codingpaula added the enhancement New feature or request label Apr 8, 2024
@falkoschindler falkoschindler added this to the 1.4.21 milestone Apr 9, 2024
@falkoschindler falkoschindler merged commit 6e61721 into main Apr 11, 2024
6 checks passed
@falkoschindler falkoschindler deleted the items branch April 11, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants