我正在使用sencha touch的原生应用程序.我想创建一个应该只在第一次可见的登录视图.任何建议如何解决它.
Activation.js
Ext.define('FOS.view.Activation', {
extend: 'Ext.form.Panel',
alias: "widget.activationview",
requires: ['Ext.form.FieldSet', 'Ext.form.Password', 'Ext.Label', 'Ext.Img', 'Ext.util.DelayedTask'],
config: {
title: 'Login',
items: [
{
xtype: 'label',
html: 'Activation failed. Please enter the correct credentials.',
itemId: 'activationFailedLabel',
hidden: true,
hideAnimation: 'fadeOut',
showAnimation: 'fadeIn',
style: 'color:#990000;margin:5px 0px;'
},
{
xtype: 'fieldset',
title: ' ',
items: [
{
xtype: 'textfield',
placeHolder: 'Enter Agency Id',
itemId: 'agencyIdTextField',
name: 'agencyIdTextField',
label: 'Agency Id',
labelWidth: '40%',
//required: true
},
{
xtype: 'textfield',
placeHolder: 'Enter …Run Code Online (Sandbox Code Playgroud)