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
1 vote
0 answers
42 views

How to have conditional design attributes in aura components?

I want my aura to be exposed on both flowscreen and lightning record page. I have implemented the interfaces. But I want different design attributes to be visible when I configure it for record page ...
Sakshi K's user avatar
0 votes
0 answers
81 views

LWC Design Attribure is not working on the Record Page

I'm working on a LWC trying to make it reusable so need to set Design Attributes to get values dynamically and use them in the component. I have got following target configs in the js-meta file <?...
Mohammed Imran's user avatar
0 votes
1 answer
574 views

LWC component Dynamic Picklist Property causing rendering error on Community Record Page Context only

I've a custom LWC (Lightning Web Component) built to be used for a community (or Digital Experience). The component can be put on a Home Page or a Community Record Page. I've few properties that ...
VarunC's user avatar
  • 5,900
1 vote
0 answers
701 views

lightning-quick-action-panel remove scroll using css LWC

I am using lightning-quick-action-panel in the html and the component loads on a button click and it contains a data table. There are 2 scrollbars present and I want to get rid of one .When I ...
Reettik 's user avatar
0 votes
1 answer
370 views

How to make value table LWC component dynamic

I have the following syntax where I want to replace 'Accounts_List' with a design value : @wire(getDynamicTableDataList, { TableName: 'Accounts_List'}) wiredContacts({ error, data }) { ...
Thomas's user avatar
  • 2,294
1 vote
0 answers
163 views

Is it possible to change designer attribute in a LWC (not aura) that is on a flexipage without first removing the LWC from the Flexipage?

Today what we do is delete the LWC from Flexipage with a predeployment manual step and then it gets deployed through the package with update designer attributes. Is there a way to skip that?
Strong Like Bull's user avatar
3 votes
1 answer
2k views

Pass value from flow to custom component and handle change

I am new here and have a question about flow. I am passing value to my aura component with design, but I cannot handle change. I am passing value from text field to my custom component, but it doesnt ...
Nilmikurdu's user avatar
1 vote
1 answer
404 views

Aura UtilityBar Components: How to set default component dimensions on the Lightning App Builder and prevent modifying of these values?

I am currently developing an Aura component for the UtilityBar and I am having trouble setting default values for the component on the App Manager screen. For an example: I would like to set height ...
Blake's user avatar
  • 121
0 votes
2 answers
517 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 ...
user569925's user avatar
  • 1,167
3 votes
1 answer
367 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 ...
VarunC's user avatar
  • 5,900
0 votes
1 answer
247 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 ...
user3872094's user avatar
2 votes
4 answers
8k 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 ...
JodieM's user avatar
  • 1,175
0 votes
1 answer
1k 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 ...
Koustubh's user avatar
  • 1,133
1 vote
0 answers
154 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?
Isuru Buddhika Herath's user avatar
0 votes
1 answer
307 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 ...
Geetha Chandran's user avatar
3 votes
2 answers
2k 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 ...
nbrown's user avatar
  • 3,964
3 votes
1 answer
1k 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 ...
M H's user avatar
  • 779
0 votes
0 answers
67 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 ...
Gowtham sakthi's user avatar
0 votes
1 answer
2k 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 ...
aleksey kosov's user avatar
0 votes
0 answers
281 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='...
sfdc 's user avatar
0 votes
2 answers
1k 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 ...
ytiq's user avatar
  • 4,475
1 vote
2 answers
956 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-...
Jeff's user avatar
  • 191
0 votes
1 answer
2k 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 ...
Student's user avatar
  • 565
0 votes
1 answer
1k views

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

I'm developing a LWC and i need to know how to use a custom label in design attributte on lighning web component.
AbdoulayeDIOP's user avatar
1 vote
1 answer
2k 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 ...
Sarang's user avatar
  • 2,560
12 votes
2 answers
7k 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 ...
Dafydd Johns's user avatar
1 vote
0 answers
354 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 ...
Eric's user avatar
  • 11
0 votes
0 answers
201 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 ...
user682217's user avatar
  • 1,171
1 vote
0 answers
153 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 ...
mxs's user avatar
  • 113
5 votes
1 answer
2k 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" &...
glls's user avatar
  • 20k
2 votes
3 answers
772 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 ...
PatMcClellan__c's user avatar
1 vote
1 answer
1k 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="...
Uwe Heim's user avatar
  • 28.3k
4 votes
1 answer
82 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 ...
Andrew Turgeon's user avatar
0 votes
2 answers
385 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 ...
Sarang's user avatar
  • 2,560
2 votes
0 answers
704 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 ...
Vinay Kumar Vemula's user avatar
5 votes
1 answer
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 ...
Arnold Jr.'s user avatar
  • 1,491
1 vote
0 answers
252 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. ...
bpilling's user avatar
  • 670
1 vote
2 answers
10k 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=...
Noomak's user avatar
  • 135
4 votes
2 answers
2k 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 ...
Oles Malkov's user avatar
  • 2,161
7 votes
1 answer
5k 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: &...
Sarang's user avatar
  • 2,560
22 votes
4 answers
31k 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:...
Bryan's user avatar
  • 417