Salesforce
PDII · Question #393
A developer is asked to modify a Lightning web component so that it displays in one column on phones and in two columns on tablets, desktops, and larger devices. Given to the code below: Which…
The correct answer is D. Add a medium-device-size="6" to the [lightning-layout-item] elements. See the full explanation below for the reasoning.
Question
A developer is asked to modify a Lightning web component so that it displays in one column on phones and in two columns on tablets, desktops, and larger devices. Given to the code below:
Which should the developer add to the code to meet the requirements?
Exhibit
Options
- AAdd a small-device-size="12" to the [lightning-layout-item] elements
- BAdd size="6" a small-device-size="12" to the [lightning-layout-item] elements
- CAdd size="12" a small-device-size="6" to the [lightning-layout-item] elements
- DAdd a medium-device-size="6" to the [lightning-layout-item] elements
How the community answered
(65 responses)- A3% (2)
- B11% (7)
- C3% (2)
- D83% (54)
Community Discussion
No community discussion yet for this question.
