How to set a backgroundcolor to a specific button in RAP [message #1440594] |
Wed, 08 October 2014 11:11  |
Eclipse User |
|
|
|
Hello Scout gurus,
I am a newbie in Scout development, and currently figuring out the styling possibilities for a Scout RAP application (see the screeenshot to get an idea where i am going..).
I am trying to style the 'Save' button in RAP. I want to give it another backgroundcolor.
I know how to style buttons in the CSS, but is there a possibility to style a specific button backgroundcolor?
We have a toolbar with a save button like
public class SaveButton extends AbstractSaveButton {}
Is there a way in the CSS to style this SaveButton?
|
|
|
Re: How to set a backgroundcolor to a specific button in RAP [message #1440624 is a reply to message #1440594] |
Wed, 08 October 2014 12:13   |
Eclipse User |
|
|
|
Hi,
Thanks for posting here. Welcome!
In the Scout model a button is defined by:
- The SystemType property (NONE, CANCEL, CLOSE, OK, RESET, SAVE ...)
- The ProcessButton property (true / false)
I will need to check with RAP experts, but I am not sure that those properties are transferred to the RAP layer. This is a precondition in order for you to be able to style the component.
This reminds me of this conversation we have about the default button of a form. This information is missing in the Scout model. Kind of limitation, but your problem might be unrelated.
By the way, you seem to have a nice Scout application. Is it already deployed in production?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04057 seconds