MCPcopy Index your code
hub / github.com/Lobos/react-ui / render

Method render

src/FormControl.js:258–278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256 }
257
258 render () {
259 let { hintType, layout, className } = this.props;
260 if (!hintType) {
261 hintType = layout === 'inline' ? 'pop' : 'block';
262 }
263
264 className = classnames(
265 className,
266 'rct-control-group',
267 `rct-hint-${hintType}`,
268 {
269 'rct-has-error': this.state.validations.length > 0
270 }
271 );
272
273 if (layout === 'inline') {
274 return this.renderInline(className);
275 } else {
276 return this.renderStacked(className);
277 }
278 }
279}
280
281FormControl.propTypes = {

Callers 1

renderItemsMethod · 0.45

Calls 2

renderInlineMethod · 0.95
renderStackedMethod · 0.95

Tested by

no test coverage detected