Results 1 to 2 of 2

Thread: 7.1 modern: Syntax error in ComboBox.primaryFilter's example

  1. #1
    Sencha User
    Join Date
    Dec 2014
    Posts
    8

    Default 7.1 modern: Syntax error in ComboBox.primaryFilter's example

    Hi

    This is an example's syntax error report.

    https://docs.sencha.com/extjs/7.1.0/...-primaryFilter

    return Ext.String.startsWith(candidateRecord.get('stateName', value, true) ||
    Ext.String.startsWith(candidateRecord.get('abbreviation', value, true);



    return Ext.String.startsWith(candidateRecord.get('stateName', value, true)) ||
    Ext.String.startsWith(candidateRecord.get('abbreviation', value, true));

  2. #2
    Sencha User
    Join Date
    Dec 2014
    Posts
    8

    Default

    Sorry, correct was the following.

    return Ext.String.startsWith(candidateRecord.get('stateName'), value, true) ||
    Ext.String.startsWith(candidateRecord.get('abbreviation'), value, true);

Posting Permissions

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