Skip to content

🚀 API Maker : Release Notes for v1.20.4

⭐ Feb 2026 ⭐

Changes

  • [IMPROVEMENT] : UI MAKER : Added support for method in user utils sanitizeHtml(value: string | undefined, type?: 'html' | 'url'): any;.
  • [IMPROVEMENT] : UI MAKER : Writing code directly in function is supported all the places wherever we can write code.

import * as T from 'types';
import { EType } from 'types';

let dbMasterConfig: T.IDBMasterConfig = {
    jsCode: [{
        appendTo: T.EDBMasterConfigAppendTo.oncePageLoadWithContext,
        code: 'userUtils.Main.oncePageLoadWithContext', // 👈 Old method
    }, {
        appendTo: T.EDBMasterConfigAppendTo.deleteConfirmationDialogGenerator,
        code: ($scope: T.IDBMasterUIPageUtilsScope): T.IConfirmDialogSettings => { // 👈 New method
            const name = $scope.selectedGridItems.name;
            const message = `Do you want to remove record of <b class="text-danger" style="color: red !important;">${name}</b>?`
            const messageCleaned = $scope.utils.sanitizeHtml(message, 'html');
            return {
                message: messageCleaned,
            }
        }
    }],
};
module.exports = dbMasterConfig;
- [IMPROVEMENT] : UI MAKER : Added support for deleteConfirmationDialogGenerator and editConfirmationDialogGenerator in EDBMasterConfigAppendTo;