+ sortVariants: function(group) {
+ return group.sort( (v1, v2) => v1.name.localeCompare(v2.name) );
+ },
+ // oninput listener, required for smartphones:
+ setCurPrefix: function(e) {
+ this.curPrefix = e.target.value;
+ },
+ getLink: function(variant) {
+ return "/#/variants/" + variant.name;
+ },
+ getVclasses: function(varray, idx) {
+ const idxMod2 = idx % 2;
+ return {
+ 'col-md-offset-1': idxMod2 == 0,
+ 'col-lg-offset-2': idxMod2 == 0,
+ 'last-noneighb': idxMod2 == 0 && idx == varray.length - 1
+ };
+ },