bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

Model class for `Combo`'s `listItemTpl` #9942

Closed SergeyMaltsev closed 22 hours ago

SergeyMaltsev commented 3 weeks ago

This is declared in typings

listItemTpl?: (record: Model) => string|void

This Combo config with record.value should work.

            editor : {
                type        : 'combo',
                items       : Scheduler.eventColors,
                editable    : false,
                listItemTpl : record => {
                    return `<div class="color-box b-sch-${record.value}"></div><div>${record.value}</div>`;
                }
            }

Model has no value property now.

Used in Scheduler/examples/frameworks/angular/localization/ and in few other places