Questions tagged [design-attributes]

Use design attributes to control which attributes are exposed in the builder. A design resource lives in the same folder as your .cmp resource, and describes the design-time behavior of the Lightning component—information that visual tools need to display the component in a page or app.

Filter by
Sorted by
Tagged with
15
votes
4answers
22k views

Error when trying to remove a lightning component's <design:attribute>

Scenario: I have a lightning component for my Save and Submit buttons. I thought I will need to add a design attribute and made the following changes: Design <design:component> <design:...
12
votes
2answers
4k views

How can we expose inherited properties from a super component’s class in a lightning Web Components through targetConfigs (design attributes)

Is there currently a way of exposing properties inherited from super classes in Lightning Web Components, as design attributes (targetConfigs), or is this a gap? I’m inheriting base classes which ...
6
votes
1answer
4k views

How to use design:attributes with aura:attribute of type string[]

I have an aura:attribute of type string[] and I want that user should be able to populate the values in that string array through app builder. For this I am using design:attributes as; Component: &...
5
votes
1answer
1k views

update design attribute value dynamically

Is there a way to update a 'defaul' or manually entered design attribute value? For example, component.cmp <aura:component implements="forceCommunity:availableForAllPageTypes" access="global" &...
5
votes
1answer
2k views

Dynamic Lightning Input Component?

I have a custom Lightning component which is a simple input form with the Contact fields(required). Obviously the controller class has an insert statement for the Contact sObject. Is there a way I ...
4
votes
1answer
75 views

design:attribute on Locked Developer Controlled Package upgrade

We have been using the 2nd Generation Developer Controlled Packages (https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_dev2gp_plan_pkg_types_locked_unlocked.htm) in ...
4
votes
2answers
1k views

Is it possible to use dynamic label for <design:attribute>

So what I need is to display some checkboxes with dynamic labels for some component attributes in the app builder(when you add a component to a flexipage you can configure some attributes). First I ...
3
votes
2answers
1k views

Specify the Navigation Menu when extending the forceCommunity:navigationMenuBase component

I'm using a custom component that extends forceCommunity:navigationMenuBase (see this Trailhead for an example of what I'm doing, documentation on the component). Is it possible to have a design ...
3
votes
1answer
181 views

How to add LWC/Aura dynamic App Builder component properties?

I am looking for ways to create Design Properties for an Aura or LWC component so that I can render different values in component properties based on chosen value in one property. Something very ...
2
votes
4answers
1k views

Simplest way to display values from field names listed in design attributes

I'm trying to write a really simple component that takes the field names from the design attributes and displays only the field values, not the standard lightning-output-field. There are two(?) ways ...
2
votes
3answers
496 views

Color Picker in design:component?

Any ideas on how to add a color picker into the .design component of a Lightning bundle? There's nothing in the docs and I don't know how to insert lightning:input with type="color" into the design ...
2
votes
1answer
603 views

Possible to use multi-line text in the designer for string aura:attribute or even rich-text attributes?

I have components which need complex parametrization like JSON values, richtext or very long text values. My attribute is defined as string like this <aura:attribute name="pageParams" type="...
2
votes
1answer
497 views

Why Don't LWC Properties Render Correctly in Flow Builder?

Background We've built-in a number of properties for a LWC, and have allowed it to be visible in Lightning Record Pages (lightning__RecordPage) and Flow Screens (lightning__FlowScreen). The ...
2
votes
0answers
619 views

How to create Multi-select picklist in .design class for configuring lightning component [duplicate]

*Note: I'm trying to implement "Multi-Select Picklist" in design source for configuring lightning component, Not a Picklist in design source for configuring lightning component. For reference I ...
1
vote
2answers
6k views

How to get and set lightning attributes

I want to get and set 'disabled' and 'value' attributes of this lightning component: <lightning:select aura:id="myId" name="select" label="Valore" required="true" onchange="{!c.tipoChanged}" value=...
1
vote
1answer
1k views

How to populate design attribute datasource automatically

We are using lightning components in a lightning community. When a user drag-drops a component in the community builder, in the configuration options we give user ability to select image names and ...
1
vote
0answers
33 views

Add design attributes dynamically with add button

In many standard LWC components, I have seen design attributes can be added dynamically with a + Add button. See the screenshot below. Can we achieve the same thing for custom components?
1
vote
2answers
291 views

Line spacing not applying when using <li> tag

This is for Salesforce CPQ Template Content. I have a spacing issue when using the li tag. If the item is too long and is forced onto more than one line, it doesn't take into account the style="margin-...
1
vote
0answers
117 views

Is it possible to extend a standard rich content component's design attributes from the Community Builder?

Just to set your expectations I'm fairly new to developing lightning components. The reason why I'm asking is I want to add additional functionality like a CSS class selection for a list so that an ...
1
vote
0answers
108 views

Section accordion for attributes in design resource for custom lighting component

In building custom lighting components with lots of admin-configurable properties, our design resource interface can get quite lengthy. It would be nice if we could have collapsible sections in the ...
1
vote
0answers
162 views

How do I update an attribute label for a custom community content layout theme?

When creating a custom component you often add attributes. You can then specify a label for these attributes that shows up in the community builder by specifying it in the components design resource. ...
0
votes
2answers
60 views

LWC unable to pass CSS attributes using targetConfigs

I have a simple LWC component where I want users to define CSS using designer attributes. However, it doesn't seem to pick it when I load it on the page even though console logs are picking up the ...
0
votes
2answers
280 views

How to disable a design:attribute so that user can only read the default value

This may take away purpose of designer attributes, but still I want to ask , How can a design:attribute be disabled so that user can only read the default value. This is to make user aware that this ...
0
votes
1answer
542 views

Radio button in LWC design attributes

I have a LWC which takes two boolean inputs isVideo and isImage in JavaScript file. Based on the value of isVideo or isImage, the LWC behaves differently. At a time only one has to be true. While ...
0
votes
1answer
75 views

Journey Builder Decision Split Using DE question

We have a journey using Salesforce Campaign Member object as the entry source. Some of the contacts entering the journey (based on the member status on entry) goes through a decision split after ...
0
votes
1answer
795 views

You can't remove design attributes 'helpURL' when the component implements a Lightning Page interface

I'm trying to upgrade a managed package. I removed a design attribute "helpURL" from my lightning component. So I get the error message "You can't remove design attributes 'helpURL' when the component ...
0
votes
0answers
18 views

design attributes — Issue with i-bubble message in app builder

I see weird message being displayed for the description in the app builder. Any idea why is that coming and how to get rid of it. I tried adding custom labels as described in the message for the ...
0
votes
0answers
24 views

How to send values dynamically using design attribute in lightning community

I want to send three fields value using design attribute in lightning community. I'm able to get only the record id value, other two fields are coming empty. <design:component> <design:...
0
votes
1answer
47 views

Can I have dependent pick lists in design attributes

I'm working on a case where I want to show picklists in design attributes. Here, in my case, I want to show them dynamically. i.e. let us take that there 2 picklists in design attributes, first to ...
0
votes
0answers
28 views

Render DesignAttribute configuration by visualforce page (LightningOut)

Hi I have a lightning component with design attributes. I want to render this component in salesforce classic view. So I have created a visualforce page and embedded the lightning component using ...
0
votes
0answers
130 views

get design attribute value on same page to another component in lwc

here is design atrribute @api parentcls and childcls i m trying to fetch these design attribute in another component on same page i tried constructor too but didnt get value on load @api parentcls='...
0
votes
2answers
853 views

LWC design attributes doesn't work in the Community with Anonymous User

Did someone try to use LWC in Communities? I created component to dynamically render Knowledge articles based on provided Topic by passing Topic.Name as Design Attribute. It works in Builder, but ...
0
votes
1answer
1k views

How to add css to override existing styling in lightning component

I am using an existing lightning component that displays some checkboxes. I am wondering if there is a way to reduce the size of the checkboxes. <design:component > <design:attribute ...
0
votes
1answer
732 views

How to use Custom Labels in design attribute on Lighning web component [closed]

I'm developping a LWC and i need to know how to use a custom label in design attributte on lighning web component.
0
votes
0answers
93 views

Use VisualEditor.DynamicPickList with blank valule

I have a component that uses VisualEditor.DynamicPickList to show active case types users can choose when configuring it on community layout. Works like magic but now I want to reset one of the ...