sapui5 - Control property/aggregation updates and re-rendering -
if update property or aggregation on control how prevent rerendering?
for example, if add member aggregation, want render new member, not full rerender.
looking general advice...
you can if custom control.
in custom control, provide new method add's delta part , renders (you can use jquery).
the new method should add aggregation, should not trigger re-rendering. check add aggregation method definition
addaggregation(saggregationname, oobject, bsuppressinvalidate?)
the bsuppressinvalidate
if true, control doesn't re-render.
example:
customcontrol.prototype.addnewimage(img){ // code manipulate dom , add image //... //... this.addaggregation(saggregationname, img, false) }
hope helps
Comments
Post a Comment