Extend TMS WEB Core with JS Libraries with Andrew: Tabulator Part 4: Interacting with Tabulator
Last time, we looked at many possible customizations for Tabulator and other parts of a TMS WEB Core Project that were generally focused on the “look” of the application. This included a handful of customizations to the content and format of the tables, as well as to other elements like images, fonts, and buttons. The overall theme was changed a few times, resulting in the styling we have now, with a handful of CSS customizations to tweak every little detail. This time out, we’re going to dig a bit deeper into the “feel” of the application. Interacting with various elements, particularly with Tabulator, breathing a little more life into the application. Motivation. While there are many JavaScript grids available that work great within TMS WEB Core projects, and even when considering elements beyond grids and projects beyond TMS WEB Core, there are aesthetic properties (what we can see) but also interactive properties (what we can do) of the elements we select, as developers. The aesthetic properties are perhaps easier to see and adjust, and in the TMS WEB Core project we’ve been creating, now called Actorious, we’ve seen how easy it is to use CSS to override the appearance of very nearly anything we want, from scrollbars to cell padding to fonts to borders. Customizing interactions for a particular element is potentially more difficult, however, and we’re generally more reliant on an element’s built-in capabilities to help us out. But a web application has enormous potential for customizations even in this area. We can add functionality and change element behaviors at will, with the goal of making the user experience as enjoyable as possible. So in this post, we’re going to explore a bunch of these kinds of enhancements, while striving for a certain level of consistency and performance, filing off some rough edges along the way. Tooltips. Let’s ease into this topic with something that seems simple enough. Tooltips. In Delphi, they’re called hints. And they work the same way straight out of the box in a TMS WEB Core application. Add a button to a form. Add something to the Hint property. Hovering your mouse over the button produces a tooltip. We’re done, right? Well, if you’ve been following along, you must know by now that we’re certainly not done at all. We’ve not even really started! When it comes to tooltips generally, there are quite a few things you can customize to make them more useful or, alternatively, to get them out of your way. The properties we’re going to address here are the overall look of the tooltip, the placement (relative to what it is linked to), as well as the delay – how quickly a tooltip appears and disappears. For some tooltips, we actually want them to be almost instant. And for others, we’d rather not see them at all most of the time. Also keep in mind that tooltips might have varying levels of usefulness under different conditions. Having a tooltip that shows “Biography” when you have a button that is clearly labeled “Biography” probably doesn’t make much sense, initially. But later, when that row of buttons shrinks to just an icon if the form is displayed on a narrower display, suddenly the tooltip might be more useful. The look of a tooltip is […]
