Skip to content

New feature: addElement() at custom position#32

Merged
alnitak merged 1 commit intoalnitak:devfrom
easyhour:addelement_atposition
Sep 4, 2024
Merged

New feature: addElement() at custom position#32
alnitak merged 1 commit intoalnitak:devfrom
easyhour:addelement_atposition

Conversation

@mauriziopinotti
Copy link
Copy Markdown

@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