0

Lightning Learning Source

What would be the label attribute value here. when I try to render on the app i got the below message. They mentioned external. What is really meant by external. Any Idea ?

<ui:inputNumber label="{!$Label.Number.PickOne}" />

OutPut on APP :

$Label.Number.PickOne does not exist. [[Input Box]]

1 Answer 1

4

It's a custom label. You can define strings called Custom Labels to use in Apex, Visualforce, and Lightning so that you don't need to hard-code user-labels.

See https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/labels_value_provider_platform.htm

3
  • You mean here Number is a namespace .
    – bharath
    Commented May 11, 2017 at 8:58
  • Yes, that's what it seems to be. The Lightning docs don't seem as thorough as the old docs, so I've come across quite a few oddities like that.
    – Aidan
    Commented May 11, 2017 at 9:46
  • Yes. When i turn number to c . Its working... {!$Label.c.PickOne}
    – bharath
    Commented May 11, 2017 at 15:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .