Results 1 to 2 of 2

Thread: Variable in Override Classname

  1. #1
    Sencha Premium User
    Join Date
    Oct 2017
    Posts
    1
    Vote Rating
    0
      0  

    Default Variable in Override Classname

    Hello,

    i'm trying in ExtJs 6.2.1

    PHP Code:
    Ext.define('esm.locale.en.QueryRestrictionGrid', {
        
    override'esm.locale.' defaultLanguageShort '.QueryRestrictionGrid'

    and get sencha cmd compiler ver. 6.2.2.36 error:
    [ERR] C2017: Node cast failure (Expected StringLiteral but found com.sencha.tools.compiler.ast.js.Infix@1169afe1 (Infix)) -- unknown-file:9:10

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,128
    Answers
    739
    Vote Rating
    976
      0  

    Default

    You could "fool" Cmd

    Code:
    (() => {
    const o = {
      override: 'esm.locale.' + defaultLanguageShort + '.QueryRestrictionGrid'
      // ....
    };
    
    Ext.define('esm.locale.en.QueryRestrictionGrid', o);
    })()
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Similar Threads

  1. Correct method to override a global scss variable in Architect
    By richard.styles in forum Sencha Architect 3.x: Q&A
    Replies: 3
    Last Post: 23 Jul 2016, 6:15 AM
  2. CSS classname generation in 4.2.1
    By Albareto in forum Ext: Q&A
    Replies: 2
    Last Post: 28 Sep 2013, 3:38 PM
  3. className of undefined
    By Zorian in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 27 Sep 2011, 6:20 AM
  4. variable override in Ext.each & Ext.iterate
    By johnrembo in forum Ext 3.x: Bugs
    Replies: 2
    Last Post: 15 Mar 2011, 10:39 AM
  5. Toolbarbutton className
    By alex1er in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 16 Nov 2006, 6:27 AM

Posting Permissions

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