Guide applies to: modern
Getting Started using Ext JS Enterprise Components using the Zip
This guide covers adding one of the Ext JS add-on components to your application using Zip.
Add-on Components | Config Name | npm Package Name | Description |
---|---|---|---|
Standard Add-on Components | |||
AMF | amf | @sencha/ext-amf | AMF Direct support |
Charts | charts | @sencha/ext-charts | Sencha charts and visualizations |
Core | core | @sencha/ext-core | Sencha Core |
Font Awesome | font-awesome | @sencha/ext-font-awesome | Package wrapper for Font Awesome |
Font-ext | font-ext | @sencha/ext-font-ext | Extra font icons |
Font-ios | font-ios | @sencha/ext-font-ios | iOS font icons |
Font-pictos | font-pictos | @sencha/ext-font-pictos | Package wrapper for Pictos Web Font |
@sencha/ext-google | Google APIs | ||
Soap | soap | @sencha/ext-soap | SOAP Data Support |
UX | ux | @sencha/ext-ux | User extensions. |
Enterprise Edition Add-on Components | |||
Calendar | calendar | @sencha/ext-calendar | Event management. |
Exporter | explorer | @sencha/ext-exporter | Data export tool. |
D3 Adapter | d3 | @sencha/ext-d3 | Data visualization. |
Pivot Grid | pivot | @sencha/ext-pivot | Data dimensions visualization. |
Pivot D3 | pivot-d3 | @sencha/ext-pivot-d3 | D3 adapter for the pivot grid. |
Pivote Locale | pivot-locale | @sencha/ext-pivot-locale | Data analytics. |
Froala Editor | froala-editor | @sencha/ext-froala-editor | WYSIWYG HTML Editor |
Requirements
Notes
The zip resources don’t take advantage of the Sencha Cmd compiler, meaning the resources will have a larger foot print in your web application. We recommend using the npm or Cmd systems.
Download the Ext JS Addons Zips
There are two zips you can download. First download the Ext JS SDK Zip. Secondly download the Ext JS Addons zip.
Zip Name | Path to Add-ons | Description |
---|---|---|
Ext JS SDK | [zip]/packages/ | This zip contains the Ext JS SDK and standard Addons components |
Ext Premium Addons | [zip]/packages/ | The Premium addons include Calendar, Exporter, D3, Pivot, and Froala editor components |
Start a Trial
If you have already signed up for the trial you can skip this step. This sign up form sends you an email with the download links.
Download Zips from the Support Portal
Existing customers can log into the portal’s downloads section and download both zips.
Add the Add-on Component to your Project
Step 1: Extract the zip
Open the zip and extract the resources into a folder that you can keep as a reference to Ext JS resources.
Step 2: Import an Add-on package source into your Web Application
This step will cover importing an add-on package into your web application. In this example we will use the Ext JS Calendar add-on. The same process could be used for any add-on package.
- Copy
[zip]/packages/calendar/build/modern/calendar-debug.js
to your web app directory. - Declare the resource import in your web page using
<script src="./calendar-debug.js"></script>
.
https://docs.sencha.com/extjs/7.4.0/modern/Ext.Viewport.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=10, user-scalable=yes">
<title>Title</title>
<!-- Ext JS -->
<script src="./ext-modern-all-debug.js"></script>
<!-- Ext JS Theme -->
<link href="/resources/theme-material-all-debug.css" rel="stylesheet" />
<!-- Ext JS Add-on Calendar -->
<script src="./calendar-debug.js"></script>
</head>
<body>
<script>
</script>
</body>
</html>
Step 3: Import Add-on Package theme into your Web Application
This step will cover importing an add-on package theme into your web application. In this example we will use the Ext JS Calendar modern theme. The same process could be used for any package theme.
- Copy the resources directory contents
[zip]/build/modern/material/resources/*
to your web app directory resources. - Declare the theme in the html file using
<link href="/resources/calendar-all-debug.css" rel="stylesheet" />
.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=10, user-scalable=yes">
<title>Title</title>
<!-- Ext JS -->
<script src="./ext-modern-all-debug.js"></script>
<!-- Ext JS Theme -->
<link href="/resources/theme-material-all-debug.css" rel="stylesheet" />
<!-- Ext JS Add-on Calendar -->
<script src="./calendar-debug.js"></script>
<link href="/resources/calendar-all-debug.css" rel="stylesheet" />
</head>
<body>
<script>
</script>
</body>
</html>
Step 4: Add the Add-on Component
This step covers adding the Add-on component to verify you have everything configured correctly.
- Add the
<script>
tag with the Ext JS component configuration to your html file. This is used to simpifly the example in this guide.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=10, user-scalable=yes">
<title>Title</title>
<!-- Ext JS -->
<script src="./ext-modern-all-debug.js"></script>
<!-- Ext JS Theme -->
<link href="/resources/theme-material-all-debug.css" rel="stylesheet" />
<!-- Ext JS Add-on Calendar -->
<script src="./calendar-debug.js"></script>
<link href="/resources/calendar-all-debug.css" rel="stylesheet" />
</head>
<body>
<script>
Ext.application({
name: 'MyApp',
launch: function () {
Ext.Viewport.add({
xtype: 'calendar',
title: 'Calendar',
flex: 1
});
}
});
</script>
</body>
</html>
Step 5: Try it out
Save the changes and reload the web browser.
What’s Next
Now you’re ready to move to the next stage of using all the Ext JS Components.