Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Stored in app/view/form1.js
- Ext.define('myapp.view.form1', {
- extend: 'Ext.form.Panel',
- xtype: 'form1Me',
- requires: [
- 'Ext.form.FieldSet',
- ],
- id: 'presscForm',
- config: {
- items: [
- {
- xtype: 'fieldset',
- id: 'pressc',
- instructions: 'Please enter the information above.',
- defaults: {
- labelWidth: '35%'
- },
- items: [
- {
- xtype:'textfield',
- name: 'name',
- label: 'Name',
- id: 'eman',
- placeHolder: 'Name'
- },
- {
- xtype: 'textareafield',
- name : 'Prescription',
- id: 'pres',
- label: 'Prescription',
- placeHolder: 'Enter your prescription here...'
- }
- ]
- },
- {
- xtype: 'container',
- defaults: {
- xtype: 'button',
- style: 'margin: .5em',
- flex : 1
- },
- layout: {
- type: 'hbox'
- },
- items: [
- {
- text: 'Submit',
- action: 'sub',
- scope: this,
- hasDisabled: false
- },
- {
- text: 'Reset',
- action: 'res',
- }
- }
- ]
- }
- ]
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement