| | |
| | | kind: 'text', |
| | | valueType: 'string', |
| | | required: false, |
| | | searchable: true, |
| | | quickSearch: true, |
| | | primaryKey: false, |
| | | sortable: false, |
| | | textarea: true, |
| | |
| | | kind: 'text', |
| | | valueType: 'string', |
| | | required: false, |
| | | searchable: true, |
| | | quickSearch: true, |
| | | primaryKey: false, |
| | | sortable: false, |
| | | textarea: true, |
| | |
| | | } |
| | | |
| | | function isSearchableField(field) { |
| | | return !!field && field.kind !== 'image' && !field.textarea; |
| | | return !!field && field.kind !== 'image' && (field.searchable === true || !field.textarea); |
| | | } |
| | | |
| | | function isSortableField(field) { |
| | |
| | | } |
| | | result.push(field); |
| | | }); |
| | | this.searchableFields.forEach(function (field) { |
| | | if (field.kind === 'date' || !field.quickSearch) { |
| | | return; |
| | | } |
| | | if (result.some(function (item) { return item.field === field.field; })) { |
| | | return; |
| | | } |
| | | result.push(field); |
| | | }); |
| | | return result; |
| | | }, |
| | | advancedSearchableFields: function () { |