Capitalize Match

Is it possible to use the capitalize-match function with items in a dropdown menu?

Hey Ryan,

Yes it is, just a little hidden.

In the editor, single-click on your dropdown menu so the options open in the right pane. Scroll to the bottom and choose "show advanced settings".

Scroll to the itemformatter (not the regular "formatter") and paste this into that: x -> {capitalize-match: {=x}}

That will use the capitalize matching command pack to format the options in that menu.

3 Likes

Ah! I was playing around with that, but didn't know how to include the arrow function. Thanks, Andrew!