Search code examples
javascripthtmlsapui5

Defining a sapui5 table


Is is possible to define a sapui5 table in html instead of javascript? I want to seperate the presentation layer (html) from the code (javascript).


Solution

  • You should define your table in a view and views can be built either with xml or as a javascript method of an object that gets called in runtime (createContent).

    In sapui5 you cannot turn a <table> element into an sapui5 table easily.