Skip to Content
0
Mar 26, 2018 at 09:59 AM

SAPUI5 custom component with HTML as resource

117 Views

Hello,

Currently I'm diving into creating custom controls for SAPUI5 applications, as described in this excellent blog from Phillip Smith for example. What I notice is that each custom control has a renderer method in which its HTML code is build up with RenderManager methods like write for example.

But is it also possible to load the HTML from a project resource first and then apply attributes and processing based on RenderManager and Control attributes?

Usage case: transform HTML templates delivered by Design Team into SAPUI5 custom controls. I want to prevent transforming whole HTML documents to oRm.write function calls.

Thanks in advance!

Bram