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
0
votes
2answers
25 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 ...
2
votes
1answer
48 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 ...
0
votes
1answer
17 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 ...
2
votes
4answers
214 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 ...
0
votes
1answer
195 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 ...
1
vote
0answers
27 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?
0
votes
1answer
58 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 ...
2
votes
2answers
651 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 ...
2
votes
1answer
262 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 ...
0
votes
0answers
44 views

Filter Design Time DynamicPickList values based on another DynamicPickList value [duplicate]

I would like an LWC component to have two design time pick list properties: Category Product Both are dynamically populated. I would like the Product picklist to be filtered by the selected ...
0
votes
0answers
34 views

Is it possible to translate Community Builder design attributes?

In Community Builder, we can export our community content via Settings | Languages | Export Content. Here is a snippet of the exported file, showing one custom component currently on a community page:...
0
votes
0answers
24 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
1answer
363 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
79 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
612 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 ...
1
vote
2answers
149 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-...
0
votes
1answer
919 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
506 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.
1
vote
1answer
803 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 ...
10
votes
2answers
3k 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 ...
1
vote
0answers
62 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 ...
0
votes
0answers
82 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 ...
1
vote
0answers
105 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 ...
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" &...
2
votes
3answers
381 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
503 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="...
4
votes
1answer
74 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 ...
0
votes
2answers
254 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 ...
2
votes
0answers
547 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 ...
5
votes
1answer
1k 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 ...
1
vote
0answers
139 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. ...
1
vote
2answers
5k 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=...
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 ...
6
votes
1answer
3k 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: &...
12
votes
4answers
18k 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:...