Proper way to find a model element with CSS selector? [message #1794183] |
Sun, 26 August 2018 23:05  |
Eclipse User |
|
|
|
Hi everyone,
I am having trouble trying to apply a custom style to one of the components in my model.
I have a Handled Tool Item with Id: my.toolbar.element within a Toolbar, but I am not able to write the right selector for it.
What I would like to achieve is to find my.toolbar.element and change its background to red.
I can find the part with the class selector with no problem:
.MToolBarElement {
--fx-background-color: red;
}
but I cannot use Id selector:
#my-toolbar-element {
--fx-background-color: red;
}
nor use:
.MToolBar > #my-toolbar-element {
--fx-background-color: red;
}
I know I am missing something, but I cannot figure it out. Also, I tried to find an example for my case online but I could not find anything relevant. Any help will be appreciated!
Thank you!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03531 seconds