MCPcopy Create free account
hub / github.com/Lobos/react-ui / render

Method render

src/Form.js:195–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193 }
194
195 render () {
196 let { button, controls, fetchStatus, children, className, onSubmit, grid, layout, ...props } = this.props;
197
198 className = classnames(
199 className,
200 getGrid(grid),
201 'rct-form',
202 {
203 'rct-form-aligned': layout === 'aligned',
204 'rct-form-inline': layout === 'inline',
205 'rct-form-stacked': layout === 'stacked'
206 }
207 );
208
209 return (
210 <form onSubmit={this.handleSubmit} className={className} {...props}>
211 {controls && this.renderControls()}
212 {this.renderChildren(children)}
213 {button && this.renderButton(button)}
214 {fetchStatus !== FETCH_SUCCESS && <div className="rct-form-mask" />}
215 </form>
216 );
217 }
218}
219
220Form.propTypes = {

Callers

nothing calls this directly

Calls 4

renderControlsMethod · 0.95
renderButtonMethod · 0.95
getGridFunction · 0.90
renderChildrenMethod · 0.45

Tested by

no test coverage detected