Timeline for get the event of a component, get the value and push to Array
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 27, 2021 at 18:28 | comment | added | sfdcfox | @Eric any attribute that is @api can be used, such as name or access-key, these vary by component (again, check the docs). The data-* attributes are used to attach private use data from your own component to keep track of which element is which (like which element in an iterator was referenced). The component never needs to declare @api variables for data-* attributes. | |
| Mar 27, 2021 at 15:35 | comment | added | Eric | Example: data-name=, object-api-name=, data-index=, access-key=, value=. I guess some of them are default by component like name= for input Fields and some can be custom when you create your component. Is data-name= custom? Sorry for my rookie question | |
| Mar 27, 2021 at 15:11 | comment | added | sfdcfox | @Eric All attributes for what, exactly? Your component has whatever attributes you define with @api. For standard components, check the documentation. | |
| Mar 27, 2021 at 14:39 | vote | accept | Eric | ||
| Mar 27, 2021 at 14:38 | comment | added | Eric | Yes, I tried your first example yesterday before posting here and had no luck as I guess name= is not supported with my component and probably need to add it like you are saying to the @api attribute, I am too rookie to think about that but I'll remember for next time ;) I used data-name instead and it works like a charm! Where can I find a list of all attributes? I search, I Google it and found some peaces but not that one... Your help is always appreciated! ;) | |
| Mar 27, 2021 at 4:30 | history | answered | sfdcfox | CC BY-SA 4.0 |