ExtJs best practices

后端 未结 3 901
谎友^
谎友^ 2021-02-04 19:42

it seems that most ExtJS books and ExtJS introductions just focus on showing all the nice features but most of them don\'t really explain how to build stable, maintainable layou

3条回答
  •  盖世英雄少女心
    2021-02-04 20:36

    In my company main code reviewer enforcing:

    • As component always talk to PAPA - never to you sibling (own children offcourse allowed)
    • Try to avoid bubblling
    • If you follow #1 you do not have need to use Ext.getCmp () it too expensive, so DO NOT
    • Consider each component reusable by someone else in your team
    • Use proper hierarchy in namespaces (and use namespaces)

    As only a few main rules on top of follow documentation... :)

提交回复
热议问题