-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello, we are developing an application with ZK and we have some tooltips on cells, listheaders, etc.
Which is the best solution to adapt this tooltips to movile devices?
Thank you,
Javier
There are several ways to show tooltips, but what zk currently supported is the first way:
https://zkfiddle.org/sample/1u06gip/1-show-tooltips
But ZK current default of a long-press is to show a context menu, so it needs to override the default behavior in javascript.
In this fiddle example, how can we create a popup without id in order to use these popups inside a template, for instance?
Thank you!
use <idspace>
to avoid conflict like https://zkfiddle.org/sample/1u06gip/2-show-tooltips
use a listbox renderer to create popup and Listcell.setPopup()
dynamically without specifying a popup's id.
Another way is to replace a tooltip with some assistant text along with the target component. For example, in desktop browser, there is an icon with tooltip. In mobile browser, you render the icon with extra help text alone with the icon. Not using tooltip, just a label with icon like:
Asked: 2021-05-20 00:27:30 +0800
Seen: 16 times
Last updated: May 24 '21
ZK how to carry out mobile development
Display on resolution 1024x768
In Tablet devices, the listbox does not keep the scrollbar position when selecting an item
set focus in a textbox on button click in the tablet don't work
Camera snapshot won't fire onSnapshotUpload event