-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace table column popup from CSS only with FUI popup #2069
Comments
There are two issues. One is maybe wrong z-index which should be fixed by implementing #1988 (comment) first as the current scrolling solution is obsolete and hacky. Another issue reported in https://discord.com/channels/657649422280425523/664569505950990382/1192786142299439124 is FUI tooltip might be cropped when it is inside a container with |
The CSS-only FUI tooltip must be replaced with FUI popup - https://fomantic-ui.com/modules/popup.html |
Hi @mvorisek Thank you for your idea. in
|
Not sure what you mean, I belive you need much more code to do that - first generate different HTML, then JS, and then make sure the JS is correctly applied to table (also possibly partial) refreshes. |
Sorry, I think I know what you mean - we have to initaite then also each popup in JS using
Correct? |
You need to handle partial table update - test on demos to verify with Crud and Crud with JS scolling, row remove, delete, update, paginator, ... This is because table renders rows using template, we should sooner or later replace that with native render tree logic, then dynamic row rendering will be easier and then you code would be enough. Sponsors welcomed. |
Here is a solution that is working smoothly transforming the tooltip into the JS variant and very simple to implement - in this example I changed it to the HTML multiline tooltip variant - let me know if anyone sees this as helpful to be merged in a PR:
There is no need to handle partial table updates in my opinion, deleted/ added rows work perfectly including the tooltips. Works perfect in JsPaginatorInContainer, and also in a JsScrolling setting. |
The proposed solution can work as FUI allows FUI modules to be repeatably initialized, but with a long live updated table this will imply performance issue - see my previous posts, the |
Hi @mvorisek, just a thought for discussion: Wouldn't it alternatively make sense to call the popup only ONCE in JQuery per App rendering as we have once CSS class only, independent if Tooltips exist or not? Not very elegant, but takes less resources than calling it multiple times. WDYT? Currently don't have an idea to code this as easy and effective as in this PR: Performance issues are only to be expected in extreme edge cases in my opinion. |
P.S. Or we track if the |
I do not want to participate in this thread more, feel free to either propose a working and performing solution or accept what I said and what must be done. |
UPDATE: FUI issue: fomantic/Fomantic-UI#2972
see discussion below, CSS only tooltip must be with FUI popup module
$grid->addDecorator('name', new \Atk4\Ui\Table\Column\Tooltip(['tooltipField' => 'name', 'icon' => 'clock circle']));
Result: The tooltip is underneath the record line above, as in this picture:
Expected result: The tooltip should be rendered above all grid lines
The text was updated successfully, but these errors were encountered: