getResources()

This method returns an object that provides access to all localized resource bundles defined at the library level and the component level for this particular Component.

Resources are accessed using the resource name and individual keys. For example: for a resource with name resource.myName created at the library or at the component level that has a key called myLabelKey in it, its value can be retrieved using:

      var resources = component.getResources();

      var myLabel = resources.myName.myLabelKey;

The resources returned correspond to the locale in effect for the form when rendered.

Method Return Value:

  • Object