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 | 1x 1x 1x | import { helper as buildHelper } from '@ember/component/helper'; import { htmlSafe } from '@ember/template'; export function parseColumns(params/*, hash*/) { let record = params[0]; let attrName = params[1]; Iif (record && attrName) { let result = record.get(attrName); return new htmlSafe(result); } } export default buildHelper(parseColumns); |