ColumnBreak.js
600 Bytes
define(["utils"], function (_u) {
    'use strict';
    function ColumnBreak() { }
    ColumnBreak.prototype = {
        transferToVM: function (dm) {
            return {
                align: dm.displayStyle == 1 ? "left" : "center",
                fontSize: dm.fontSize,
                color: dm.fontColor,
                fontWeight: dm.inBold == 1 ? "bold" : "normal",
                content: dm.title,
                btn: {
                    enabled: dm.btnEnabled == 1,
                    text: dm.btnText
                }
            }
        }
    };
    return ColumnBreak;
});