lib/modules/apostrophe-pieces/lib/helpers.js
function(filter, choice) {
      var choices = [];
      for (var i = 0; i < filter.choices.length; i++) {
        choices.push({
          label: filter.choices[i].label,
          action: filter.name,
          value: filterValueToChoiceValue(filter.choices[i].value, choice),
          default: filter.choices[i].value === filter.def
        });
      };
      return choices;
    }
function(filter, choice) {
      var choices = [];
      for (var i = 0; i < filter.choices.length; i++) {
        choices.push({
          label: filter.choices[i].label,
          action: filter.name,
          value: filterValueToChoiceValue(filter.choices[i].value, choice),
          default: filter.choices[i].value === filter.def
        });
      };
      return choices;
    }
function ( filter , choice ) { var choices = [ ] ; for ( var i = 0 ; i < filter . choices . length ; i ++ ) { choices . push ( { label : filter . choices [ i ] . label , action : filter . name , value : filterValueToChoiceValue ( filter . choices [ i ] . value , choice ) , default : filter . choices [ i ] . value === filter . def } ) ; } ; return choices ; }
Obsolete. Translates filter data for use with Pill component
Obsolete . Translates filter data for use with Pill component