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

New feature: addElement() at custom position #32

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

mauriziopinotti
Copy link

@mauriziopinotti mauriziopinotti commented Aug 29, 2024

Description

Allow inserting elements with custom order.

In order to allow more flexibility for the consumer, add an optional "position" parameter to addElement(); if not specified, the element will be added to the last position as before.

An example use case is being able to add an element to the bottom of the stack instead of the top. Another would be allowing reverse z-order, like new elements always go below the exiting ones.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

In order to allow more flexibility for the consumer, add an optional
"position" parameter to addElement(); if not specified, the element will
be added to the last position as before.

An example use case is being able to add an element to the bottom of the
stack instead of the top. Another would be allowing reverse z-order,
like new elements always go below the exiting ones.
@alnitak alnitak changed the base branch from main to dev September 4, 2024 10:27
@alnitak alnitak merged commit 2307337 into alnitak:dev Sep 4, 2024
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