doPartialRender abstract method
Does a partial render to the BeagleView. Compared to the full render, it will skip every step
until the view snapshot, i.e, it will start by taking the view snapshot and end doing a render
to the screen. Useful when updating components that have already been rendered once. If any
component in tree
haven't been rendered before, you should use doFullRender
instead.
To see the full documentation of the renderization process, please follow this link: https://github.com/ZupIT/beagle-web-core/blob/main/docs/renderization.md
The parameter tree
is the new tree to render, it can be just a new branch to add to the
current tree or the entire tree. If it's the entire tree, the second and third parameter can
be ommited.
If you wish to update a branch of the tree, you must specify the second parameter anchor
which is the id of the element in the current tree to add the new branch (tree
) to.
The third parameter mode
tells Beagle how to add this tree to anchor
. Prepend adds the new
element to the start of the list of children. Append ads the children at the end. Replace
remove all current children and adds tree
as the only child. ReplaceComponent will replace
the element identified by anchor
entirely by tree
. Default is replaceComponent.
Implementation
void doPartialRender(BeagleUIElement tree, [String anchor, TreeUpdateMode mode]);