How can I know about the lightning messages option?
I found lightning:messages in trailhead and want to use it in my component, but I couldn't find it in the Lightning Component Library.
How can I know its description?
This is my sample.
buttonClick:function(component,event,helper){
let err = {
"errors": "ERROR!"
};
component.find('myMessage').setError(err['errors']);
}
I wish I could set some other options.
Added image of what I need, it's an Attribute of lightning:input.
If lightning:messages have options like this, I want to know them.
Lightning Message Service which can be used to exchange data between Visualforce, Aura Component and Lightning Web Components. Unlike the previous process, we don’t need to import any external library like pub or sub.
Please refer this https://www.jitendrazaa.com/blog/salesforce/data-exchange-between-aura-lightning-web-components-lwc-and-visualforce/#more-6920. There is detailed description & code here.
Hope your problem is solved.