kViewerの一覧画面で背景色を着けたい

設定例を載せておきます。

(function () {
    "use strict";
    kv.events.records.mounted = [(state) => {
        // 特定の条件でフィールドの背景色を変更
        state.records.forEach((record) => {
            if (record['f_姓'].value === '山口') {
                // フィールドの背景色を水色に設定
                kv.index.getElementByCode(record.$id.value, "f_姓").style.backgroundColor = "#00CCFF";
            }
        });
        return state;
    }];
})();

image