How does one use the semantic-ui-react Label OnRemove handler /removeIcon property?


How does one use the semantic-ui-react Label OnRemove handler /removeIcon property?



I noticed that the semantic-ui-react Label has an OnRemove handler as well as a removeIcon property. I am wondering how this is supposed to be used with other controls, as it does not seem to be well documented. For example, how would I make use of this with an Input or Form.Input?




1 Answer
1



Here is an usage example:


onRemove = (event, data) => {
console.log("onRemove event");
}

render() {
return (
<Label color='teal' content='Label content' removeIcon='delete'
onRemove={this.onRemove} />
);
}



enter image description here






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

How to input without newline? (Python)

C++ thread error: no type named ‘type’ MINGW

Analog for TagView in flutter