String item to text input in Main UI

I have a String item defined.
When looking at it in the Main UI => Locations view, It just displays the current state of the item.
Is it possible to define the item in such a way that instead some kind of text-box is rendered, where I can write some text into and send it to the item?

Use the input widget at overview page…

The representations of items that you see in all the lists in the model pages (and several other areas in MainUI) are determined by the default list item information for that item. Each item type has it’s own built-in default, but you can also use the “Default List Item” metadata for an item to override the built-in setting on an individual item-by-item basis.

You can either use the list item metadata to swap in some other basic oh widget, or get fancy and crate your own list item widget and set that as the default for the item instead. From your description, however, it sounds like all you need is the oh-input-item:

That looks very promising @JustinG.
Is there a doc on how to use this with .items files somewhere?

I don’t know that there is, but I do recall a while back a couple of threads about it. if you search the forums for “listWidget” (which is the actual metadata name) youi’ll almost certainly come up with some examples.

You also don’t have to define the metadata in the items file. You can use the UI to add metadata associated with an item that comes from an items file.

I found the correct syntax and which configuration I had to add to really get the text input field.

String MyItem {channel="...",listWidget="oh-input-item"[type="text",sendButton="true"]}

Without the type="text" it would just render the value of the item, but no input box and sendButton="true" is also needed to actually send the command to the item.

Thanks for your help @JustinG