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

Method renderTip

src/FormControl.js:162–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160 }
161
162 renderTip () {
163 let { tip, errorText } = this.props;
164 let { validations, hints } = this.state;
165 hints = tip || hints;
166
167 if (validations) {
168 // if has tip,use tip
169 if (errorText) { validations = errorText; }
170 return <span key="tip" className="error">{validations}</span>;
171 }
172
173 if (hints) {
174 return <span key="tip" className="hint">{hints}</span>;
175 } else {
176 return;
177 }
178 }
179
180 propsExtend (props) {
181 props.itemBind = this.itemBind;

Callers 1

renderItemsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected