UNPKG

ember-frost-bunsen

Version:
26 lines (19 loc) 689 B
import computed, {readOnly} from 'ember-computed-decorators' import _ from 'lodash' import AbstractInput from './abstract-input' import layout from 'ember-frost-bunsen/templates/components/frost-bunsen-input-text' export default AbstractInput.extend({ // == Component Properties =================================================== classNames: [ 'frost-bunsen-input-text', 'frost-field' ], layout, // == Computed Properties ==================================================== // We totally don't care about this cause it's view schema @readOnly @computed('cellConfig') inputType (cellConfig) { return _.get(cellConfig, 'renderer.type') || 'text' } })