Ecmascript 6 и автозаполнение угловых угловых сеток onSelect не работает

Функция onselect не работает. Не можете найти почему? Кто-нибудь, кто может мне помочь?

loadAutoAllocationGrid() {
        this.autoAllocationGrid = {
            gridTitle: 'Allocations',
            remoteEnable: false,
            showColumnFooter: false,
            data: this.baseAcc.allocations,
            enablePaginationControls: true,
            columnDefs: [
                {
                    field: 'code',
                    enableEdit: false
                },
                {
                    field: 'account',
                    textField: 'name',

                    dataSource: (filter) => {
                        return BASE_ACCOUNT_SERVICE.get(this).getAccountsAll([
                            {field: 'name', value: filter, operator: 1}
                        ], ['id', 'name']).then((response) => {
                            return response;
                        });
                    },
                    onSelect: function(row, col, item) { // can't call to this function
                      console.log(8481);
                        //row.entity = item;
                    },
                    cellTemplate: '<div class="ui-grid-cell-contents" title="TOOLTIP">{{row.entity.name}}</div>',
                    editableCellTemplate: 'ui-grid/cellEditor/autoComplete'
                },
                {field: 'accDescription'},
                {field: 'description'},
                {field: 'parentage'}
            ]
        }
    }

0 ответов

Другие вопросы по тегам