surfmuggle / Cubert

To become a jedi one must start as a novice
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Create a split button #25

Open surfmuggle opened 4 years ago

surfmuggle commented 4 years ago

A split button looks like a button but has a dropdow to select different actions. For example the Button "Add to Cart" could have a dropdown where each entry means x times the item:

Add to cart (1x) Add to cart (2x) Add to cart (4x)

The last picked amount should be the label and the default action. If the user clicked 3x from the drop down the button should display "Add to cart (3x)"

Example in a list of products each product has a button and the last picked quantity is displayed.

      T-Shirt  "Red Alert"   Add to cart (1x)
      Short "Cool Beach" Add to cart (4x)

If the user clicks a button a list should be expanded how many items were chosen from this article.