How to get the display density in a lightning components controller?
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
4
down vote
favorite
Is it possible to see if a user is in Comfy or Compact display density in a lightning controller? This is a new feature since Winter '19 and I cant find any documentation about this.
lightning-components lightning-design-system javascript-controller
add a comment |Â
up vote
4
down vote
favorite
Is it possible to see if a user is in Comfy or Compact display density in a lightning controller? This is a new feature since Winter '19 and I cant find any documentation about this.
lightning-components lightning-design-system javascript-controller
add a comment |Â
up vote
4
down vote
favorite
up vote
4
down vote
favorite
Is it possible to see if a user is in Comfy or Compact display density in a lightning controller? This is a new feature since Winter '19 and I cant find any documentation about this.
lightning-components lightning-design-system javascript-controller
Is it possible to see if a user is in Comfy or Compact display density in a lightning controller? This is a new feature since Winter '19 and I cant find any documentation about this.
lightning-components lightning-design-system javascript-controller
lightning-components lightning-design-system javascript-controller
asked 1 hour ago
Robin Weymans
434
434
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
You can get Display density information using Salesforce User Interface API
. This Link will help you. I don't think you can directly access Salesforce UI-API from Lightning controller, but you can use Apex
class to achieve this.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
You can get Display density information using Salesforce User Interface API
. This Link will help you. I don't think you can directly access Salesforce UI-API from Lightning controller, but you can use Apex
class to achieve this.
add a comment |Â
up vote
2
down vote
accepted
You can get Display density information using Salesforce User Interface API
. This Link will help you. I don't think you can directly access Salesforce UI-API from Lightning controller, but you can use Apex
class to achieve this.
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
You can get Display density information using Salesforce User Interface API
. This Link will help you. I don't think you can directly access Salesforce UI-API from Lightning controller, but you can use Apex
class to achieve this.
You can get Display density information using Salesforce User Interface API
. This Link will help you. I don't think you can directly access Salesforce UI-API from Lightning controller, but you can use Apex
class to achieve this.
answered 39 mins ago
Arun
34628
34628
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f234780%2fhow-to-get-the-display-density-in-a-lightning-components-controller%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password