Request: split button for mobile

I would like a split button for mobile. We have them on desktop. We could use the actionsheet to change between options. Basically it should have two press buttons in 1.

You would think this is easily done with 2 buttons. But you can't code the actionsheet actions which is crucial to have control over the options available. The only thing you can do is use a modal to add the options there. But the modal is just another screen and doesn't feel at all like a modal. (a modal should be an overlay in my opinion).

You could do it with a select and a button. Unfortunately you can't control the loading state or any appearance settings like color or icons on the select component. The button component lacks appearance customisations to combine it with a select component so it looks like it's one component.

I could make one myself if custom mobile components were a thing. :santa: that would be nice for Christmas

The lack of feature parity between web and mobile often means that said feature wouldn't be fully utilized in one environment, but I think you've made a good case here and will see what the team thinks.

What do you mean by this? The workaround I initially thought of is to define a single button that opens up an action sheet containing a list of different actions the user can take. The only difference between this and a true split button is that it requires two clicks for all options, instead of all but one.

On mobile, you can’t use JavaScript to add or remove options to populate the actionsheet as far as I know. Say I have a list collection with products. But those products have different sizes. But for every product this is different. I can create multiple actionsheets. But if I have 1000 products that might mean 1000 different actionsheets.

I did request another feature to be able to have more control over the actionsheet. But that’s in another post. Since that is also very useful addition.

So far I always manage to solve things using a lot of workarounds. But I do request these new features in case I think they would improve the retool mobile experience. Since these workarounds cost a lot of time and effort.

I use a select and a button now. But visually I think it could be better with a split button.

Got it - that makes sense! :+1: Thanks for always giving good mobile feedback.