cancel
Showing results for 
Search instead for 
Did you mean: 

Understand better the renderer

Former Member
0 Kudos

HI,

There is some examples or reference beside the regular help docs about control renderer ?

1. for example best practise what should be there and what should be on the css?

2. Should I put only div there or any tags  oRm.write("<div");

3. Examples how to use it in composite control will be greate

Examples how it should be used in some controls will be helpful!

Accepted Solutions (0)

Answers (1)

Answers (1)

AndreasKunz
Advisor
Advisor
0 Kudos

Hi Stephane,

maybe studying some renderers of real controls gives you answers, e.g. in the sap.m library:

https://github.com/SAP/openui5/tree/master/src/sap.m/src/sap/m

You can find some guidelines and best practices here:

https://github.com/SAP/openui5/blob/master/docs/guidelines.md#renderer

Of course you can/should use any HTML tags: use the semantically best-suited one (this is also part of the guidelines).

Don't forget escaping any unknown strings you are writing to the HTML, to avoid cross-site scripting.

Regards

Andreas