on 11-02-2015 8:10 AM
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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.