Skip to Content
avatar image
Former Member

Understand better the renderer

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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 02, 2015 at 08:45 AM

    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

    Add comment
    10|10000 characters needed characters exceeded