Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

What is `displayNameKey` in capabilities.json ?

Hello,

 

 To do my cuom visuals, I enter some object properties in capabilities.json in this way:

 

"objects": {
  "ggsettings": {
    "displayName": "Chart Settings",
    "description": "Chart settings",
    "properties": {
      "Smoothing": {
        "displayName": "Smoothing",
        "description": "Add smoothing",
        "type": {
          "bool": true
        }
      },

 

I have seen some examples with a displayNameKey field:

 

"objects": {
  "ggsettings": {
    "displayName": "Chart Settings",
    "description": "Chart settings",
    "properties": {
      "Smoothing": {
        "displayName": "Smoothing",

        "displayNameKey": "XXXXXXXXXXX"
        "description": "Add smoothing",
        "type": {
          "bool": true
        }
      },

 

What is the role of this field?

1 REPLY 1
dm-p
Super User
Super User

displayNameKey (as well as descriptionKey and placeholderTextKey) is used to define a lookup value for localisation within visuals.

Note that if building this in, you need to package your visual to test that lookups work correctly, as stringResources/localisation keys are not supplied to the developer visual when debugging.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors