Representa o Render do framework.
Parameters:
Name | Type | Description |
---|---|---|
rootElement |
HTMLElement | rootElement - Elemento HTML raíz da SPA. |
Properties:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
targetComponent |
Object | Objeto literal contendo as propriedades de um componente a ser renderizado.
Properties
|
- Source:
Methods
(inner) appendFormattedComponentOnRootElement() → {undefined}
Concatena a propriedade formattedComponent do Objeto literal targetComponent no rootElement.
- Source:
Returns:
- Type
- undefined
(inner) clearElement(targetElement) → {undefined}
Exclui o conteúdo HTML de dentro do elemento desejado.
Parameters:
Name | Type | Description |
---|---|---|
targetElement |
HTMLElement | targetElement - Elemento HTML a ser limpo. |
- Source:
Returns:
- Type
- undefined
(inner) finishTargetComponent() → {undefined}
Envia a propriedade virtualScript do Objeto literal targetComponent o sinal para a sua finalização.
- Source:
Returns:
- Type
- undefined
(inner) getDocumentFragment(targetComponent) → {DocumentFragment|undefined}
Retorna o DocumentFragment do componente.
Parameters:
Name | Type | Description |
---|---|---|
targetComponent |
Object | targetComponent - Objeto do componente. |
- Source:
Returns:
- Type
- DocumentFragment | undefined
(inner) onVirtualScriptChange() → {undefined}
Cria o handler do evento "change" da propriedade virtualScript do Objeto literal targetComponent.
- Source:
Returns:
- Type
- undefined
(inner) render(targetComponent) → {undefined}
Renderiza um Componente no rootElement caso receba o pârametro targetComponent ou atualiza os HTMLElements do rootElement baseados nos parâmetros virtuais.
Parameters:
Name | Type | Description |
---|---|---|
targetComponent |
Object | Undefined | targetComponent - Objeto literal contido nas rotas do Router. |
- Source:
Returns:
- Type
- undefined
(inner) setTargetComponent(targetComponent) → {undefined}
Chama as funções responsáveis por povoar as propriedades [originalComponent, rawTemplate, rawScript, rawStyle, virtualTemplate, virtualScript] do Objeto literal targetComponent.
Parameters:
Name | Type | Description |
---|---|---|
targetComponent |
HTMLElement | targetComponent - Elemento HTML do componente a ser instanciado. |
- Source:
Returns:
- Type
- undefined
(inner) setTargetComponentFormattedDocument() → {undefined}
Povoa a propriedade formattedComponent do Objeto literal targetComponent com a versão final dos HTMLElements a serem renderizados.
- Source:
Returns:
- Type
- undefined
(inner) setTargetComponentRawProperties(targetComponent) → {undefined}
Povoa as propriedades HTMLElement do Objeto literal targetComponent.
Parameters:
Name | Type | Description |
---|---|---|
targetComponent |
HTMLElement | targetComponent - Elemento HTML do componente a ser instanciado. |
- Source:
Returns:
- Type
- undefined
(inner) setTargetComponentVirtualProperties() → {undefined}
Povoa as propriedades Object do Objeto literal targetComponent.
- Source:
Returns:
- Type
- undefined
(inner) setVirtualScript() → {undefined}
Povoa a propriedade virtualScript do Objeto literal targetComponent com uma instância da classe Script a partir da propriedade HTMLElement rawScript do Objeto literal targetComponent.
- Source:
Returns:
- Type
- undefined
(inner) setVirtualScriptListener() → {undefined}
Cria os listeners de eventos da propriedade virtualScript do Objeto literal targetComponent.
- Source:
Returns:
- Type
- undefined
(inner) updateRawTemplateBasedOnVirtualScript() → {undefined}
Atualiza os HTMLElements da propriedade rawTemplate do Objeto literal targetComponent baseados nos dados contidos na variável virtualScript no Objeto literal targetComponent.
- Source:
Returns:
- Type
- undefined
(inner) validateDocumentFragmentTagNames(contextualFragments) → {boolean}
Valida as TagNames do DocumentFragment.
Parameters:
Name | Type | Description |
---|---|---|
contextualFragments |
DocumentFragment | contextualFragments - Objeto do componente. |
- Source:
Returns:
- Type
- boolean