Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introduction to ExtReact, ExtAngular and ExtWeb...
Search
Olga
June 06, 2019
Programming
100
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Introduction to ExtReact, ExtAngular and ExtWebComponents
Olga
June 06, 2019
More Decks by Olga
See All by Olga
Visual Feature Engineering for Machine Learning with React
olgapetrova
0
300
Visual Feature Engineering for ML with React and TensorFlow.js
olgapetrova
0
100
How to Re-Architect a JavaScript Class System
olgapetrova
0
150
Web Push Notifications
olgapetrova
1
330
How to add D3.js visualization to your Ext JS application
olgapetrova
1
630
Turbo-charged Data Analysis and Visualization using Ext JS 6.2
olgapetrova
3
130
ExtJS 6: one framework for all devices
olgapetrova
1
820
Other Decks in Programming
See All in Programming
freee が目指す データ マネジメント戦略 AI-Ready 時代を支える 攻めのガバナンスとは
freee
PRO
0
250
AI時代のPHPer生存戦略 ~「言語、もうなんでもよくない?」に本気で向き合う~
vivion
0
240
複数の Claude Code が"放置"されてしまう問題をCLI ダッシュボードを自作して解決した話
sumihiro3
1
650
琵琶湖の水は止められてもNet--HTTPのリトライは止められない / You might be able to stop the water flow of Lake Biwa but you can't stop Net::HTTP retries
luccafort
PRO
0
560
継続モナドとリアクティブプログラミング
yukikurage
3
680
改善しないと、タスクが回らない。 “てんこ盛りポジション” を引き継いだ情シスの、入社3ヶ月の業務改善録
krm963
0
250
ルールを書いて終わらせないハーネスエンジニアリング
yug1224
4
1.8k
Welcome to the "Parametricity" 🏙️ − Generic だけど Specific な世界 −
guvalif
PRO
1
200
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
530
霧の中の代数的エフェクト
funnyycat
1
460
属人化した知識を、 AIが辿れる地図にする
pkshadeck
PRO
1
140
仕様書を書く前にハーネスを作る - Agent Native開発は「探索を速く、判定を固く」
gotalab555
4
1.5k
Featured
See All Featured
Skip the Path - Find Your Career Trail
mkilby
1
180
Navigating Team Friction
lara
192
16k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
230
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.6k
Done Done
chrislema
186
16k
Darren the Foodie - Storyboard
khoart
PRO
3
3.5k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
430
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
Navigating Weather and Climate Data
rabernat
0
450
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
2
3.7k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
240
Transcript
Olga Petrova, @tyoushe Introduction to ExtReact, ExtAngular, ExtWebComponents Olga Petrova,
@tyoushe
[email protected]
Olga Petrova, @tyoushe ExtReact & ExtAngular
Olga Petrova, @tyoushe
Olga Petrova, @tyoushe Components
Olga Petrova, @tyoushe Ext JS, React and Angular Ext JS
Component configs items: [] Angular Component properties Children elements React Component props Children elements
Olga Petrova, @tyoushe Reactor Wrapper Concept Ext JS Component props
state method calls event listeners transform translate configs events methods link to Ext JS Component
Olga Petrova, @tyoushe Architecture first and lastname React Framework Core
Ext Modern Components Theme Packages Sencha Themer Angular Framework Sencha Test Premium Packages
Olga Petrova, @tyoushe ExtReact 8 import React, { Component }
from 'react'; import { Grid, Column } from '@sencha/ext-modern'; export default class MyGrid extends Component { store = Ext.create('Ext.data.Store', {...}); render() { return ( <Grid title="Stock Prices" store={this.store}> <Column text="Company" dataIndex="name" width="150"/> <Column text="Price" width="85" dataIndex="price" formatter='usMoney‘/> </Grid> ) } } MyGrid.js
Olga Petrova, @tyoushe <container padding="10" layout="fit" [fitToParent]="true"> <grid title="Stock Prices"
[store]="store"> <column text="Company" width="150" dataIndex="name"></column> <column text="Price" width="85" dataIndex="price" formatter="usMoney"></column> <column text="Last Updated" dataIndex="lastChange"></column> </grid> </container> ExtAngular 9 import { Component } from '@angular/core'; @Component({ selector: 'basicgrid-component‘, templateUrl: './MyGrid.html' }) export class BasicGridComponent { store = Ext.create('Ext.data.Store', {...}) constructor() { //... } } MyGrid.html MyGrid.ts
Olga Petrova, @tyoushe Getting Started 10 ExtReact Trial: https://www.sencha.com/products/extreact/evaluate/ ExtAngular
Trial: https://www.sencha.com/products/extangular/evaluate/
Olga Petrova, @tyoushe npm login --registry=https://npm.sencha.com --scope=@sencha npm install -g
@sencha/ext-react-gen ext-react-gen app -i Setup 11
Olga Petrova, @tyoushe Examples 12 ExtReact Kitchensink: https://examples.sencha.com/ExtReact/6.7.0/kitchensink/ ExtAngular Kitchensink:
https://examples.sencha.com/ExtAngular/6.7.0/kitchensink/
Olga Petrova, @tyoushe Vue.js
Olga Petrova, @tyoushe WebComponents
Olga Petrova, @tyoushe
Olga Petrova, @tyoushe Specifications • Custom Elements • Shadow DOM
• ES Modules • HTML Template 16
Olga Petrova, @tyoushe Custom HTML Tag 17 class MyAwesomeButton extends
HTMLElement {...} window.customElements.define('my-awesome-button', MyAwesomeButton); <my-awesome-button class="nice_style">Click me!</my-awesome-button> var myAwesomeButton = document.createElement('my-awesome-button‘); document.body.appendChild(myAwesomeButton); document.querySelector('my-awesome-button‘) .addEventListener('click', function() {...});
Olga Petrova, @tyoushe
Olga Petrova, @tyoushe ExtWebComponents
Olga Petrova, @tyoushe ExtWebComponents 20 import '@sencha/ext-web-components/dist/ext-column.component'; import '@sencha/ext-web-components/dist/ext-grid.component‘;
Olga Petrova, @tyoushe <ext-panel width="100%" height="100%"> <ext-grid multiColumnSort=true onready="basicgrid.onGridReady" title="Stock
Prices"> <ext-column text="Company" flex="1" dataIndex="name"></ext-column> <ext-column text="Price" dataIndex="price" formatter="usMoney"></ext-column> <ext-column text="Last Updated" dataIndex="lastChange"></ext-column> </ext-grid> </ext-panel> import './MyGrid.html'; export default class MyGrid { constructor() { this.store = Ext.create('Ext.data.Store', {...}); } onGridReady = (event) => { this.gridCmp = event.detail.cmp; this.gridCmp.setStore(this.store); } } ExtWebComponents 21 MyGrid.html MyGrid.js
Olga Petrova, @tyoushe Getting Started 22 MyGrid.ts Early adopter access
to ExtWebComponents Trial: https://www.sencha.com/products/extwebcomponents/evaluate/earlyaccess/
Olga Petrova, @tyoushe npm login --registry=https://sencha.myget.org/F/early-adopter/npm/ --scope=@sencha npm install -g
@sencha/ext-web-components-gen ext-web-components-gen app --name MyApp Setup 23 MyGrid.ts
Olga Petrova, @tyoushe Examples 24 ExtWebComponents Kitchensink: https://examples.sencha.com/ExtWebComponents/7.0.0/kitchensink/
Olga Petrova, @tyoushe • 115+ UI Components • Layout System
• Sencha Themer • Sencha Test • Sencha Cmd integration • Ext JS component bridge • Webpack: Build and Bundle ExtReact ExtAngular ExtWebComponents
Olga Petrova, @tyoushe Introduction to ExtReact, ExtAngular, ExtWebComponents Olga Petrova,
@tyoushe
[email protected]