ExtJS: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 136: Line 136:
* [https://examples.sencha.com/ExtReact/7.0.0/kitchensink/frame-index.html#/ ExtReact  Kitchen Sink 7.0.0]
* [https://examples.sencha.com/ExtReact/7.0.0/kitchensink/frame-index.html#/ ExtReact  Kitchen Sink 7.0.0]
* [http://cdn.sencha.com/ext/gpl/ext-6.2.0-gpl.zip  Ext-6.2.0-gpl.zip Download]
* [http://cdn.sencha.com/ext/gpl/ext-6.2.0-gpl.zip  Ext-6.2.0-gpl.zip Download]
* [https://examples.sencha.com/extjs/7.1.0/examples/kitchensink/frame-index.html?classic#all Ext JS Kitchen Sink 7.1.0]
* [https://examples.sencha.com/extjs/7.0.0/examples/kitchensink/frame-index.html?profile=triton Ext JS Kitchen Sink 7.0.0]
* [https://examples.sencha.com/extjs/7.0.0/examples/kitchensink/frame-index.html?profile=triton Ext JS Kitchen Sink 7.0.0]
* [http://examples.sencha.com/extjs/6.6.0/examples/kitchensink/frame-index.html?classic Ext JS Kitchen Sink 6.6.0]
* [http://examples.sencha.com/extjs/6.6.0/examples/kitchensink/frame-index.html?classic Ext JS Kitchen Sink 6.6.0]
* [http://examples.sencha.com/extjs/6.2.0/examples/kitchensink/frame-index.html?profile=crisp Ext JS Kitchen Sink 6.2.0]
* [http://examples.sencha.com/extjs/6.2.0/examples/kitchensink/frame-index.html?profile=crisp Ext JS Kitchen Sink 6.2.0]
* [http://cdn.medisys.com.my/docs/ext-6.0.0/build/examples/kitchensink/?profile=crisp Ext JS Kitchen Sink 6.0.0]
* [http://cdn.medisys.com.my/docs/ext-6.0.0/build/examples/kitchensink/?profile=crisp Ext JS Kitchen Sink 6.0.0]
* [https://moduscreate.com/blog/ext-js-to-react-routing/ Ext JS to React: Routing]


| valign="top" |
| valign="top" |
* [https://docs.sencha.com/cmd/guides/cmd_packages/cmd_creating_packages.html Creating Sencha Cmd Packages]
* [https://docs.sencha.com/cmd/guides/cmd_packages/cmd_creating_packages.html Creating Sencha Cmd Packages]
* [https://moduscreate.com/blog/ext-js-to-react-routing/ Ext JS to React: Routing]
* [https://docs.sencha.com/extjs/6.2.0/guides/components/introduction_to_charting.html Introduction to Charting]
* [https://docs.sencha.com/extjs/6.2.0/guides/components/introduction_to_charting.html Introduction to Charting]
* [https://docs.sencha.com/extjs/6.6.0-CE Ext JS Docs 6.6.0-CE]
* [https://docs.sencha.com/extjs/6.6.0-CE Ext JS Docs 6.6.0-CE]
Line 151: Line 152:
* [https://sencha.myget.org/feed/Packages/community Sencha MyGet]
* [https://sencha.myget.org/feed/Packages/community Sencha MyGet]
* [https://docs.sencha.com/cmd/guides/extjs/cmd_app.html Sencha CMD]
* [https://docs.sencha.com/cmd/guides/extjs/cmd_app.html Sencha CMD]


| valign="top" |
| valign="top" |

Revision as of 18:25, 28 January 2020

Optionally

# using classic toolkit for web application
sencha -sdk=$HOME/.chorke/academia/sdk/ext-6.2.0 generate app Web -classic ui.web
sed -i 's/"theme": "theme-triton"/"theme": "theme-crisp"/g' ./ui.web/app.json
cd ui.web;sencha app build
sencha web start
# using modern toolkit for mobile application
sencha -sdk=$HOME/.chorke/academia/sdk/ext-6.2.0 generate app Mob -modern ui.mob
sed -i 's/"theme": "theme-triton"/"theme": "theme-ios"/g' ./ui.mob/app.json
cd ui.mob;sencha app build
sencha web start
if [ ! -f 'workspace.json' ]&&[ ! -d 'ext' ];then \
    sencha -sdk=$HOME/.chorke/academia/sdk/ext-6.2.0 generate workspace .;\
fi
if [ ! -d 'ext' ];then \
    sencha app install $HOME/.chorke/academia/sdk/ext-6.2.0;\
fi
sencha app build --clean --dev
sencha app build --clean --pro
sencha package upgrade
sencha app upgrade
sencha app refresh
sencha app watch

Simplified

# using classic toolkit for web application
sencha -sdk $HOME/.chorke/academia/sdk/ext-6.2.0 generate app -classic Web ./ui.web;\
cd ui.web;sencha app build;\
sencha web start

# using modern toolkit for mobile application
sencha -sdk $HOME/.chorke/academia/sdk/ext-6.2.0 generate app -modern Mob ./ui.mob;\
sed -i 's/"theme": "theme-triton"/"theme": "theme-ios"/g' ./ui.mob/app.json;\
cd ui.mob;sencha app build;\
sencha web start

Remote REST

Ext.define( 'CKo.store.m00.sm.M00SM00X00', {
    extend: 'Ext.data.Store',
    model : 'CKo.model.m00.mm.M00MM00X00',
    autoLoad    : false,
    remoteSort  : true,
    remoteFilter: true,
    autoSync    : true,
    proxy       : {
        type: 'rest',
        api : {
            create : 'https://dev.chorke.org/m/00/cm/00/x/00', //M00CM00X00
            read   : 'https://dev.chorke.org/m/00/cm/00/x/00', //M00CM00X00
            update : 'https://dev.chorke.org/m/00/cm/00/x/00', //M00CM00X00
            destroy: 'https://dev.chorke.org/m/00/cm/00/x/00'  //M00CM00X00
        },
        actionMethods: {
            create : 'POST',
            read   : 'GET',
            update : 'PUT',
            destroy: 'DELETE'
        },
        reader: {
            type: 'json',
            root: 'data',
            successProperty: 'success'
        },
        writer: {
            type: 'json',
            root: 'data'
        }
    }
});

KitchenSink Hacks

;ExtJS 6.2 GPL Example KitchenSink
KitchenSink           :     677~    857
MZ/pivot              :     848~    882
KitchenSink/Component :   8,922~  8,991
KitchenSink/VTypes    :  37,500~ 37,531
Ext/pivot             : 142,902~149,705
Ext/d3                : 172,125~176,035
Ext/calender          : 176,036~182,218
Ext/d3                : 182,219~182,588
KitchenSink           : 182,589~243,760
Ext.example           : 243,761~243,787
Cookies               : 243,788~243,827
prettyPrint           : 243,828~245,738

Component

Accordion Swiper
Undoable Accordion Swiper
Basic Accordion Swiper
Undoable Step Swiper
Basic Step Swiper
Grid Panel
Reconfigure Grid
Editable Grid
Cell Editing
Ticker Grid
Tree Panel
Navigation Menu

References