Can I use $Label.LightningControl in my components?$Label.LightningControl.required does not existlightning:input doesn't always bind to attribute references?Localization Service in Lightning ComponentsMarkup for editing SObject fields in Lightning ComponentsHow to create a Custom label(URL) in Sandbox that can be deployed to Prod?Is it possible to use dynamic label for <design:attribute>Use standard salesforce componentUse aura:id to group or identify field components?Import and use strike componentsOn change of designer attribute, init() handler is called againUnable to update namespace of custom labels in managed package
Uncommanded roll at high speed
Mother abusing my finances
Term for checking piece whose opponent daren't capture it
How did early x86 BIOS programmers manage to program full blown TUIs given very few bytes of ROM/EPROM?
Creating Fictional Slavic Place Names
The qvolume of an integer
Strange math syntax in old basic listing
What does "tea juice" mean in this context?
What does it mean when you think without speaking?
Biblical Basis for 400 years of silence between old and new testament
How to detach yourself from a character you're going to kill?
Is there an evolutionary advantage to having two heads?
Is floating in space similar to falling under gravity?
What is the indigenous Russian word for a wild boar?
Can an old DSLR be upgraded to match modern smartphone image quality
Humans meet a distant alien species. How do they standardize? - Units of Measure
Can a rogue effectively triple their speed by combining Dash and Ready?
Adding strings in lists together
How to make the POV character sit on the sidelines without the reader getting bored
Using PCA vs Linear Regression
Is the world in Game of Thrones spherical or flat?
How to retrieve the correct Account records from SOQL query?
What caused the tendency for conservatives to not support climate change regulations?
Modern approach to radio buttons
Can I use $Label.LightningControl in my components?
$Label.LightningControl.required does not existlightning:input doesn't always bind to attribute references?Localization Service in Lightning ComponentsMarkup for editing SObject fields in Lightning ComponentsHow to create a Custom label(URL) in Sandbox that can be deployed to Prod?Is it possible to use dynamic label for <design:attribute>Use standard salesforce componentUse aura:id to group or identify field components?Import and use strike componentsOn change of designer attribute, init() handler is called againUnable to update namespace of custom labels in managed package
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
While reading documentation for the lightning:input
aura component, I noticed that some attributes default to $Label.LightningControl.activeCapitalized
or $Label.LightningControl.inactiveCapitalized
.
So what are this LightningControl
lables? Can I use them in my code, or should I? If yes, where can I this list of LightningControl labels in the system?
lightning-aura-components customlabel
add a comment |
While reading documentation for the lightning:input
aura component, I noticed that some attributes default to $Label.LightningControl.activeCapitalized
or $Label.LightningControl.inactiveCapitalized
.
So what are this LightningControl
lables? Can I use them in my code, or should I? If yes, where can I this list of LightningControl labels in the system?
lightning-aura-components customlabel
add a comment |
While reading documentation for the lightning:input
aura component, I noticed that some attributes default to $Label.LightningControl.activeCapitalized
or $Label.LightningControl.inactiveCapitalized
.
So what are this LightningControl
lables? Can I use them in my code, or should I? If yes, where can I this list of LightningControl labels in the system?
lightning-aura-components customlabel
While reading documentation for the lightning:input
aura component, I noticed that some attributes default to $Label.LightningControl.activeCapitalized
or $Label.LightningControl.inactiveCapitalized
.
So what are this LightningControl
lables? Can I use them in my code, or should I? If yes, where can I this list of LightningControl labels in the system?
lightning-aura-components customlabel
lightning-aura-components customlabel
asked May 23 at 8:32
EduardEduard
1,9772826
1,9772826
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
This is interesting, Normal syntax of the accesing custom label is $Label.Namespace.LabelName' . So this implies
LightningControl` is an internal namespace used by the lightning team to default a few values here and there.
This namespace reminds me of this error which I faced, a few years back. $Label.LightningControl.required does not exist
A custom label should be universally available, I tried accessing it in apex:System.debug(System.label.LightningControl.activeCapitalized);
which gave me compile time error.
and in VF as !$Label.LightningControl.activeCapitalized
which again gave me compile time error.
Also what other possible values can there be for this LightningControl
namespace,
I tried running this query in Developer Console using tooling Api.
SELECT ID , Name , Value , namespaceprefix FROM CUSTOMLABEL where namespaceprefix = 'LightningControl'
This returned zero results, which implies salesforce doesn't want us to use labels in this namespace outside lightning aura components.
Can I use them in my code?
I can confirm you can use them in Lightning Aura components, but not in VF and apex
Should I use them?
I would consider them like namespace labels which you get by installing any appexchange package. The thing about them is they are upgradable. So salesforce can upgrade/update the custom lable by putting any patch and it might start breaking your UI /logic. I would not personally use them, unless salesforce explicity documents it.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "459"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f263426%2fcan-i-use-label-lightningcontrol-in-my-components%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This is interesting, Normal syntax of the accesing custom label is $Label.Namespace.LabelName' . So this implies
LightningControl` is an internal namespace used by the lightning team to default a few values here and there.
This namespace reminds me of this error which I faced, a few years back. $Label.LightningControl.required does not exist
A custom label should be universally available, I tried accessing it in apex:System.debug(System.label.LightningControl.activeCapitalized);
which gave me compile time error.
and in VF as !$Label.LightningControl.activeCapitalized
which again gave me compile time error.
Also what other possible values can there be for this LightningControl
namespace,
I tried running this query in Developer Console using tooling Api.
SELECT ID , Name , Value , namespaceprefix FROM CUSTOMLABEL where namespaceprefix = 'LightningControl'
This returned zero results, which implies salesforce doesn't want us to use labels in this namespace outside lightning aura components.
Can I use them in my code?
I can confirm you can use them in Lightning Aura components, but not in VF and apex
Should I use them?
I would consider them like namespace labels which you get by installing any appexchange package. The thing about them is they are upgradable. So salesforce can upgrade/update the custom lable by putting any patch and it might start breaking your UI /logic. I would not personally use them, unless salesforce explicity documents it.
add a comment |
This is interesting, Normal syntax of the accesing custom label is $Label.Namespace.LabelName' . So this implies
LightningControl` is an internal namespace used by the lightning team to default a few values here and there.
This namespace reminds me of this error which I faced, a few years back. $Label.LightningControl.required does not exist
A custom label should be universally available, I tried accessing it in apex:System.debug(System.label.LightningControl.activeCapitalized);
which gave me compile time error.
and in VF as !$Label.LightningControl.activeCapitalized
which again gave me compile time error.
Also what other possible values can there be for this LightningControl
namespace,
I tried running this query in Developer Console using tooling Api.
SELECT ID , Name , Value , namespaceprefix FROM CUSTOMLABEL where namespaceprefix = 'LightningControl'
This returned zero results, which implies salesforce doesn't want us to use labels in this namespace outside lightning aura components.
Can I use them in my code?
I can confirm you can use them in Lightning Aura components, but not in VF and apex
Should I use them?
I would consider them like namespace labels which you get by installing any appexchange package. The thing about them is they are upgradable. So salesforce can upgrade/update the custom lable by putting any patch and it might start breaking your UI /logic. I would not personally use them, unless salesforce explicity documents it.
add a comment |
This is interesting, Normal syntax of the accesing custom label is $Label.Namespace.LabelName' . So this implies
LightningControl` is an internal namespace used by the lightning team to default a few values here and there.
This namespace reminds me of this error which I faced, a few years back. $Label.LightningControl.required does not exist
A custom label should be universally available, I tried accessing it in apex:System.debug(System.label.LightningControl.activeCapitalized);
which gave me compile time error.
and in VF as !$Label.LightningControl.activeCapitalized
which again gave me compile time error.
Also what other possible values can there be for this LightningControl
namespace,
I tried running this query in Developer Console using tooling Api.
SELECT ID , Name , Value , namespaceprefix FROM CUSTOMLABEL where namespaceprefix = 'LightningControl'
This returned zero results, which implies salesforce doesn't want us to use labels in this namespace outside lightning aura components.
Can I use them in my code?
I can confirm you can use them in Lightning Aura components, but not in VF and apex
Should I use them?
I would consider them like namespace labels which you get by installing any appexchange package. The thing about them is they are upgradable. So salesforce can upgrade/update the custom lable by putting any patch and it might start breaking your UI /logic. I would not personally use them, unless salesforce explicity documents it.
This is interesting, Normal syntax of the accesing custom label is $Label.Namespace.LabelName' . So this implies
LightningControl` is an internal namespace used by the lightning team to default a few values here and there.
This namespace reminds me of this error which I faced, a few years back. $Label.LightningControl.required does not exist
A custom label should be universally available, I tried accessing it in apex:System.debug(System.label.LightningControl.activeCapitalized);
which gave me compile time error.
and in VF as !$Label.LightningControl.activeCapitalized
which again gave me compile time error.
Also what other possible values can there be for this LightningControl
namespace,
I tried running this query in Developer Console using tooling Api.
SELECT ID , Name , Value , namespaceprefix FROM CUSTOMLABEL where namespaceprefix = 'LightningControl'
This returned zero results, which implies salesforce doesn't want us to use labels in this namespace outside lightning aura components.
Can I use them in my code?
I can confirm you can use them in Lightning Aura components, but not in VF and apex
Should I use them?
I would consider them like namespace labels which you get by installing any appexchange package. The thing about them is they are upgradable. So salesforce can upgrade/update the custom lable by putting any patch and it might start breaking your UI /logic. I would not personally use them, unless salesforce explicity documents it.
answered May 23 at 9:09
Pranay JaiswalPranay Jaiswal
19.8k53266
19.8k53266
add a comment |
add a comment |
Thanks for contributing an answer to Salesforce Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f263426%2fcan-i-use-label-lightningcontrol-in-my-components%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown