SearchKit - Support filters in new Run action
[civicrm-core.git] / ext / search / ang / crmSearchAdmin / displays / searchAdminDisplayList.component.js
CommitLineData
03b55607
CW
1(function(angular, $, _) {
2 "use strict";
3
4 angular.module('crmSearchAdmin').component('searchAdminDisplayList', {
5 bindings: {
6 display: '<',
7 apiEntity: '<',
8 apiParams: '<'
9 },
10 require: {
969245e4 11 parent: '^crmSearchAdminDisplay'
03b55607
CW
12 },
13 templateUrl: '~/crmSearchAdmin/displays/searchAdminDisplayList.html',
14 controller: function($scope, searchMeta) {
15 var ts = $scope.ts = CRM.ts(),
16 ctrl = this;
17 this.getFieldLabel = searchMeta.getDefaultLabel;
18
03b55607
CW
19 this.symbols = {
20 ul: [
21 {char: '', label: ts('Default')},
7ff7ebc8
CW
22 {char: 'circle', label: ts('Circles')},
23 {char: 'square', label: ts('Squares')},
24 {char: 'none', label: ts('None')},
03b55607
CW
25 ],
26 ol: [
7ff7ebc8 27 {char: '', label: ts('Default (1. 2. 3.)')},
03b55607 28 {char: 'upper-latin', label: ts('Uppercase (A. B. C.)')},
7ff7ebc8 29 {char: 'lower-latin', label: ts('Lowercase (a. b. c.)')},
03b55607
CW
30 {char: 'upper-roman', label: ts('Roman (I. II. III.)')},
31 ]
32 };
33
34 this.$onInit = function () {
35 if (!ctrl.display.settings) {
36 ctrl.display.settings = {
37 style: 'ul',
38 limit: 20,
39 pager: true
40 };
41 }
969245e4 42 ctrl.parent.initColumns();
03b55607
CW
43 };
44
45 }
46 });
47
48})(angular, CRM.$, CRM._);