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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Change the height of the description field for my viz in the formatting pane

I'm developing a custom visual, and in the formatting pane for it I have fields for author, support URL, and a description. 

 

Currently they all appear on one line, meaning users can't read the full description or click on the URL. Can anyone help me change my code so that (a) the description box expands to the height of the text which should wrap, and (b) enables the URL to be clickable without generating a security warning when I package it up? I'm currently using the following code:

Capabilities.json object:

        "about": {
            "properties": {
              "about": {
                "type": { "text": true }
              },
              "supportUrl": {
                "type": { "text": true }
              },
              "author": {
                "type": { "text": true }
              }
            }
        }

settings.ts: 

class AboutSettingsCard extends formattingSettings.SimpleCard {
    about = new formattingSettings.TextInput({
        placeholder: "This text describes the visualisation in detail and is quite long so disappears when its rendered as one line",
        name: "about",
        displayName: "Description",
        value: "This text describes the visualisation in detail and is quite long so disappears when its rendered as one line",
    });
    supportUrl = new formattingSettings.TextInput({
        placeholder: "",
        name: "supportUrl",
        displayName: "Support URL",
        value: "a valid url"
    });
    author = new formattingSettings.TextInput({
        placeholder: "",
        name: "author",
        displayName: "Author",
        value: "Yours truly"
    });
    name = "about";
    displayName = "Visualisation Name";
    slices = [this.about, this.supportUrl, this.author];
}

 

 



 

 

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @Anonymous.,

 

If you want a multi-line text property, use formattingSettings.TextArea rather than formattingSetting.TextInput.

 

Regarding URLs, and presuming you're using the launch URL API, they will always generate a security warning, which cannot be bypassed.

 

Regards,


Daniel





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)




View solution in original post

1 REPLY 1
dm-p
Super User
Super User

Hi @Anonymous.,

 

If you want a multi-line text property, use formattingSettings.TextArea rather than formattingSetting.TextInput.

 

Regarding URLs, and presuming you're using the launch URL API, they will always generate a security warning, which cannot be bypassed.

 

Regards,


Daniel





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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Kudoed Authors