The docs at https://apidocs.rnd.mendix.com/8/client/mx.ui.html don’t provide enough info to build custom widgets.
For better understanding we need an un-minified version of mxui.js and 3rd-party libraries. Possibly via a page parameter ?nominify=1