Skip to main content

Life Cycle

sapa has a life cycle.

UIElement ->
created()
initialize() ->
initState()
render ->
template()
parseComponent() ->
create child component ->
load()
initializeEvent()
afterRender()
MethodOverrideDescription
createdOWhen the UIElement is created
initializeOIt is the same as created but it is used when creating initial data.
initStateOMethods to initialize state
templateOGenerate html at render time
afterRenderOWhen the DOM is applied to the actual browser, the element can be accessed from outside