Skip to content
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

tooltip extension in a gridpane #152

Open
HLevering opened this issue Dec 22, 2021 · 2 comments
Open

tooltip extension in a gridpane #152

HLevering opened this issue Dec 22, 2021 · 2 comments
Labels
question Not an actual issue, a question

Comments

@HLevering
Copy link

HLevering commented Dec 22, 2021

Hi vlaaad,
first of all: Thank you very much for this great and awesome library. It makes creating UIs so much easier.
I have a problem with the tooltip extension. I have a gridpane. Into this gridpane I want to insert a node, which is extended with a tooltip:

{:fx/type fx.ext.node/with-tooltip-props
     :props {:tooltip {:fx/type :tooltip
                       ;; jdk 11 only
                       ;:show-duration [1 :h]
                       :text (str "tooltip of the week")}}
     :desc       {:fx/type        :text
                  :grid-pane/column (if left 0 2)
                  :grid-pane/row    num
                  :style-class    ["app-hovergroup" "app-pin"]
                  :text "hello"} ;child of a gridpane

However this fails, with the error message :
No such prop: :grid-pane/column {:prop :grid-pane/column}
If I insert the :text node directly, then everything works as expected.
How can I solve this? I think the problem is, that ":grid-pane/..." only works for direct children of gridpane and the fx.ext.node adds another nodelayer in between instead of extending the :text node.

@vlaaad
Copy link
Contributor

vlaaad commented Dec 22, 2021

Hi! Just move grid-pane keys to outer map

@vlaaad vlaaad added the question Not an actual issue, a question label Dec 22, 2021
@HLevering
Copy link
Author

It worked. Thank you very much for your assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Not an actual issue, a question
Projects
None yet
Development

No branches or pull requests

2 participants