All files / web/bundles/pimdatagrid/js/datagrid/cell html-cell.js

100% Statements 4/4
100% Branches 0/0
100% Functions 2/2
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24  348x                     348x           731x 731x        
/* global define */
define(['oro/datagrid/string-cell'],
function(StringCell) {
    'use strict';
 
    /**
     * Html column cell. Added missing behaviour.
     *
     * @export  oro/datagrid/html-cell
     * @class   oro.datagrid.HtmlCell
     * @extends oro.datagrid.StringCell
     */
    return StringCell.extend({
        /**
         * Render a text string in a table cell. The text is converted from the
         * model's raw value for this cell's column.
         */
        render: function () {
            this.$el.empty().html(this.formatter.fromRaw(this.model.get(this.column.get("name"))));
            return this;
        }
    });
});