Salesforce Fact #486 | Client form factor in LWC
To detect the form factor of the hardware the browser is running on, we can import @salesforce/client/formFactor scoped module in LWC.
The possible values are:
Large - A desktop client.
Medium - A tablet client.
Small - A phone client.
Comments
Post a Comment