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
kmcknight2001uk
New Member

How to map presentation properties to columns in a table?

Hi all,
I'm new to all of this, but I'm trying to create a new visual that simply displays a link of which gets it property meta data from a table.

I have a table called Links which has the following columns:

 

PowerBI Links.png

 

I want to present title, link text, link url and target as custom presentation properties in the visual, but have it so title will be a drop down list of all values in title so when the user selects a title it updates link text, link url and target strings with its corresponding values.

I hope that makes sense. A snippet of my code is below as it currently stands.
Any pointers would be most welcome.

Many Thanks.

Keith.

 

export class More implements IVisual {
private dataView: DataView;
public static capabilities: VisualCapabilities = {
// Objects light up the formatting pane
objects: {
general: {
displayName: data.createDisplayNameGetter('Visual_General'),
properties: {
formatString: {
type: { formatting: { formatString: true } },
},
},
},
LinkSettings: {
displayName: 'Link Settings',
properties: {
text: {
displayName: "Text",
description: "Link title",
type: {text : true }
},
url: {
displayName: "Url",
description: "Link Url",
type: {text : true }
},
target: {
displayName: "Target",
description: "Link target: {_blank | _self | _parent | _top}",
type: {text : true }
}
}
}
}
};

0 REPLIES 0

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.