Results 1 to 3 of 3

Thread: missing comma and classic code in modern docs

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2013
    Location
    Australia
    Posts
    308

    Default missing comma and classic code in modern docs

    https://docs.sencha.com/extjs/7.0.0/...method-control

    code example is missing a comma after the control:{}
    code is also classic, it should be modern



    Ext.define('MyApp.controller.Users', {
    extend: 'Ext.app.Controller',

    control: {
    'viewport > panel': {
    render: 'onPanelRendered'
    }
    }

    onPanelRendered: function() {
    console.log('The panel was rendered');
    }
    });

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449

    Default

    Are you sure that is the correct link? There is different code there.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member
    Join Date
    Aug 2013
    Location
    Australia
    Posts
    308

    Default

    Quote Originally Posted by mitchellsimoens View Post
    Are you sure that is the correct link? There is different code there.
    Sorry.

    link should have been
    https://docs.sencha.com/extjs/7.0.0/...ontroller.html

    "The Ext JS to React series attempts to guide those in the Ext JS community looking for resources on app development in React "
    https://moduscreate.com/blog/ext-js-react-faq/

    Would it be better to move from Ext JS and do React?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •