Add textbox celltoolbar UI element generator

There are generators for select menus and checkboxes for the celltoolbar UI. It would also be useful to have a textbox one!

Currently this isn't 100% functional because of #6426. Also it probably needs tests, too.