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 25 26 27 28 29 | 1x 2x | import Component from '@ember/component'; import layout from '../../templates/components/bootstrap/simple-form'; import { BuilderForPropTypes, BuilderForPropDefaults } from 'ember-bootstrap-controls/utils/prop-definition-tools'; import { PropTypes } from 'ember-prop-types'; export const propDefinitions = { disabled: { description: 'Indicates whether the form and associated controls are disabled', type: PropTypes.bool, default: false, }, submitAction: { description: 'Function to be ran when the submit button is clicked', type: PropTypes.function, default: null, }, }; export default Component.extend({ layout, tagName: 'form', propTypes: BuilderForPropTypes(propDefinitions), getDefaultProps() { return BuilderForPropDefaults(propDefinitions) }, }); |