Sencha Touch 2.3.1 Basic Grid Example
How do I make an sencha touch 2.3.1 basic grid example?
Here's a basic ST Grid running in 2.3.1. Some people have had issues so here's a working example to reference if your's is not :) . What is a sencha touch 2.3.1 basic grid example? How do you make a sencha touch 2.3.1 basic grid example? This script and codes were developed by Shayne Trosdahl on 18 November 2022, Friday.
Sencha Touch 2.3.1 Basic Grid Example - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Sencha Touch 2.3.1 Basic Grid Example</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <script type="text/javascript" src="http://trozdol.com/st-2.3/sencha-touch-all.js"></script> <script type="text/javascript" src="http://trozdol.com/st-2.3/sencha-touch-grid.js"></script> <link rel="stylesheet" type="text/css" href="http://trozdol.com/st-2.3/sencha-touch.css"> <script src="js/index.js"></script>
</body>
</html>
Sencha Touch 2.3.1 Basic Grid Example - Script Codes CSS Codes
@import "compass/css3";
Sencha Touch 2.3.1 Basic Grid Example - Script Codes JS Codes
Ext.setup({ onReady: function() { Ext.Viewport.add({ xtype: 'container', defaults: { margin: 20, padding: 20 }, layout: 'card', items: [{ xtype: 'grid', requires: ['Ext.grid.Grid', 'Ext.grid.HeaderGroup', 'Ext.grid.plugin.Editable', 'Ext.grid.plugin.ViewOptions', 'Ext.grid.plugin.MultiSelection', 'Ext.grid.plugin.ColumnResizing', 'Ext.grid.plugin.SummaryRow' ], // DEMO DATA STORE store: { fields: ['company', 'sales', 'grossprofit', 'something', 'somethingtwo', 'thing3'], data: [{ company: '3m Co', sales: '000.00', grossprofit: '000.00', something: 'xxxxxx', somethingtwo: 'xxxxxx', thing3: '$123456.12' }, { company: 'Exxon', sales: '000.00', grossprofit: '000.00', something: 'xxxxxx', somethingtwo: 'xxxxxx', thing3: '$123456.12' }, { company: 'Frito Lay', sales: '000.00', grossprofit: '000.00', something: 'xxxxxx', somethingtwo: 'xxxxxx', thing3: '$123456.12' }, { company: 'Del Taco', sales: '000.00', grossprofit: '000.00', something: 'xxxxxx', somethingtwo: 'xxxxxx', thing3: '$123456.12' }, { company: 'Coca Cola', sales: '000.00', grossprofit: '000.00', something: 'xxxxxx', somethingtwo: 'xxxxxx', thing3: '$123456.12' }, { company: 'Exxon', sales: '000.00', grossprofit: '000.00', something: 'xxxxxx', somethingtwo: 'xxxxxx', thing3: '$123456.12' }, { company: 'Frito Lay', sales: '000.00', grossprofit: '000.00', something: 'xxxxxx', somethingtwo: 'xxxxxx', thing3: '$123456.12' }, { company: 'Del Taco', sales: '000.00', grossprofit: '000.00', something: 'xxxxxx', somethingtwo: 'xxxxxx', thing3: '$123456.12' }, { company: 'Coca Cola', sales: '000.00', grossprofit: '000.00', something: 'xxxxxx', somethingtwo: 'xxxxxx', thing3: '$123456.12' }, { company: 'Exxon', sales: '000.00', grossprofit: '000.00', something: 'xxxxxx', somethingtwo: 'xxxxxx', thing3: '$123456.12' }, { company: 'Frito Lay', sales: '000.00', grossprofit: '000.00', something: 'xxxxxx', somethingtwo: 'xxxxxx', thing3: '$123456.12' }, { company: 'Del Taco', sales: '000.00', grossprofit: '000.00', something: 'xxxxxx', somethingtwo: 'xxxxxx', thing3: '$123456.12' }, { company: 'Coca Cola', sales: '000.00', grossprofit: '000.00', something: 'xxxxxx', somethingtwo: 'xxxxxx', thing3: '$123456.12' }] }, // SET THE TITLEBAR OF GRID title: 'Sencha Touch Grid', // DON'T WANT THE TITLEBAR? // titleBar: false, // To Hide the Grid Toolbar // YOU CAN ALSO CONFIGURE THE TITLEBAR LIKE SO.. titleBar: { items: [{ xtype: 'label', html: 'A Label' }, { xtype: 'button', text: 'Toolbar Button', align: 'right' }, { xtype: 'button', text: 'Another Button', align: 'right' }] }, // CONTAINER FOR COLUMN TITLES headerContainer: { height: 65 }, // HEIGHT OF EACH ROW // IF YOU CHANGE THIS YOU NEED TO ADJUST CSS LINE-HEIGHT TO MATCH itemHeight: 60, // GRID COLUMNS CONFIG columns: [{ text: 'Company', dataIndex: 'company', width: 150 }, { text: 'Sales', width: 150, }, { // YOU CAN GROUP COLUMNS LIKE THIS xtype: 'gridheadergroup', text: 'Column Groups', items: [{ text: 'Gross Profit', dataIndex: 'grossprofit', width: 150 }, { text: 'Sales', dataIndex: 'sales', width: 150 }] }, { text: 'Something Two', dataIndex: 'somethingtwo', width: 150 }, { text: 'Thing 3', dataIndex: 'thing3', width: 150 }] }] }); }
});

Developer | Shayne Trosdahl |
Username | Trozdol |
Uploaded | November 18, 2022 |
Rating | 3 |
Size | 2,770 Kb |
Views | 22,253 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
How to Set Sencha Touch Chart Legend Labels | 2,322 Kb |
Test Prof Mode | 1,484 Kb |
Varied Size Text Centered Vertically | 2,847 Kb |
List Item | 3,241 Kb |
Turn Off Smart Quotes in Mac OS X | 5,299 Kb |
Textfield PlaceHolder as Icon | 2,334 Kb |
Simple Photo Button Example for Friends Reference | 1,661 Kb |
CSS Size Value Comparison of 10 | 2,279 Kb |
SVG Logo Animation | 2,807 Kb |
Sencha Touch Button Icon Size CSS | 2,234 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Boom | Mhrjnsa1 | 1,794 Kb |
A Pen by Bryan | Brydave | 2,286 Kb |
Testimonial Fancy tabs responsive | Amit-webdesigner | 3,056 Kb |
Jochaho Skeleton | Dhanushbadge | 1,689 Kb |
Loading animation | Codeams | 2,408 Kb |
Responsive slide | Thorien | 2,400 Kb |
Countdown with Rings | Ewganoel | 2,490 Kb |
Working around OS X Dynamic Scrollbars | Jrjenk | 2,279 Kb |
Vue Transition | Chenming142 | 4,561 Kb |
Html5-canvas-snow-effect | MariamMassadeh | 2,609 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!