Custom Spinner Widget : Spinner « Ext JS « JavaScript DHTML

Home
JavaScript DHTML
1.Ajax Layer
2.Data Type
3.Date Time
4.Development
5.Document
6.Dojo toolkit
7.Event
8.Event onMethod
9.Ext JS
10.Form Control
11.GUI Components
12.HTML
13.Javascript Collections
14.Javascript Objects
15.Javascript Properties
16.jQuery
17.Language Basics
18.Mochkit
19.Mootools
20.Node Operation
21.Object Oriented
22.Page Components
23.Rico
24.Scriptaculous
25.Security
26.SmartClient
27.Style Layout
28.Table
29.Utilities
30.Window Browser
31.YUI Library
JavaScript DHTML » Ext JS » Spinner 




Custom Spinner Widget
  
<!--
/*!
 * Ext JS Library 3.0.0
 * Copyright(c) 2006-2009 Ext JS, LLC
 [email protected]
 * http://www.extjs.com/license
 */
-->
<!-- Revised from demo code in ext3.0.0 -->

<html>
<head>
<title>Hello World Window</title>
<link rel="stylesheet" type="text/css" href="ext-3.0.0/resources/css/ext-all.css" />
<script type="text/javascript" src="ext-3.0.0/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="ext-3.0.0/ext-all.js"></script>
    <link rel="stylesheet" type="text/css" href="ext-3.0.0/examples/ux/css/Spinner.css" />
    <script type="text/javascript" src="ext-3.0.0/examples/ux/Spinner.js"></script>
    <script type="text/javascript" src="ext-3.0.0/examples/ux/SpinnerField.js"></script>
    <script type="text/javascript">
/*!
 * Ext JS Library 3.0.0
 * Copyright(c) 2006-2009 Ext JS, LLC
 [email protected]
 * http://www.extjs.com/license
 */
Ext.onReady(function(){
    var simple = new Ext.FormPanel({
        labelWidth: 40// label settings here cascade unless overridden
        frame: true,
        title: 'Simple Form',
        bodyStyle: 'padding:5px 5px 0',
        width: 210,
        defaults: {width: 135},
        defaultType: 'textfield',

        items: [
            new Ext.ux.form.SpinnerField({
                fieldLabel: 'Age',
                name: 'age'
            }),
            {
              xtype: 'spinnerfield',
              fieldLabel: 'Test',
              name: 'test',
              minValue: 0,
              maxValue: 100,
              allowDecimals: true,
              decimalPrecision: 1,
              incrementValue: 0.4,
              alternateIncrementValue: 2.1,
              accelerate: true
            }
        ]
    });

    simple.render('form-ct');
});
    
    </script>

</head>
<body>

  <div id="form-ct" style="margin-top:1em"></div>

</body>
</html>

   
    
  














Related examples in the same category
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.