Sha256: 9352ce0194ae64eb8c5ed5973e97c8da65bf54756c7d0e4b8a961aafbf510c90

Contents?: true

Size: 353 Bytes

Versions: 3

Compression:

Stored size: 353 Bytes

Contents

import { InternalHelperReference } from '../utils/references';
function inputTypeHelper({ positional }) {
    let type = positional.at(0).value();
    if (type === 'checkbox') {
        return '-checkbox';
    }
    return '-text-field';
}
export default function (_vm, args) {
    return new InternalHelperReference(inputTypeHelper, args.capture());
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
discourse-ember-source-3.6.0.0 dist/es/@ember/-internals/glimmer/lib/helpers/-input-type.js
discourse-ember-source-3.5.1.1 dist/es/ember-glimmer/lib/helpers/-input-type.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-glimmer/lib/helpers/-input-type.js