This repository has been archived by the owner on May 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45cfbcf
commit dbba4fb
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Mba.ux.Viewport | ||
|
||
Componente da MBA que provê overrides com melhorias para `Ext.viewport.*`, adicionando navegação automática | ||
para evento `backbutton`. | ||
|
||
|
||
Override do `Ext.viewport.Default` classe utilizada por todas viewports (Android, Ios e WindowsPhone). | ||
|
||
- `onBack()` método adicionado que chama Mba.ux.Navigation.back() que é registrado atráves do backbutton; | ||
- `callbackFocus()` método adicionado para corrigir problema do Scroll com teclado para Android; | ||
- `navigation` propriedade que atribui o objeto navigation com configs para mesmo veja exemplo básico abaixo; | ||
- `autonavigation` propriedade que escuta o evento `backbutton` automático e realiza navegação com método Ext.Viewport.setActiveItem() e Ext.Viewport.animateActiveItem(); | ||
- `registerOnBack` propriedade que escuta o evento `backbutton` automático. | ||
|
||
Exemplo de navegação automática para Ext.Viewport: | ||
|
||
``` | ||
// config app.js | ||
viewport: { | ||
xclass: 'Ext.viewport.Viewport', | ||
autoNavigation: true, | ||
navigation: { | ||
xtypesResetable: ['mainview'] // limpa stack essa viewport | ||
} | ||
}, | ||
``` | ||
|
||
|