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
1answer
25 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
35 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
174 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
41 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
205 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
124 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
344 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
753 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
30 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
55 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
73 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 ...
3
votes
1answer
659 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" &...
1
vote
3answers
183 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
340 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
70 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
190 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 ...
1
vote
0answers
337 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
95 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
2k 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
1answer
888 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 ...
4
votes
1answer
2k 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: &...
7
votes
3answers
11k 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:...