10

I've been reading this documentation here and so far it seems pretty straight forward on how to add input fields and pickers on the component pane when editing on the community builder.

However, I can't seem to find any documentation for possible creating check boxes, textarea and etc. Anyone know if this is possible or might be able to point me to documentations?

UPDATE: adding screenshot to clarify what I'm talking about. I'm referring to the component pane or the property editor.

enter image description here

4
  • look under refrences--> component refernces , you will see all ui options that you can use on the component
    – Rao
    Commented Jun 23, 2016 at 21:46
  • @Rao hmmmm these are for ui though. I was talking more about <design:attributes />. Sorry if it wasn't clear
    – kev_panda
    Commented Jun 23, 2016 at 23:07
  • kev_panda are you referring to LDS attributes, if so the documentation is here: lightningdesignsystem.com/components/activity-timeline
    – Rao
    Commented Jun 23, 2016 at 23:09
  • @Rao No, I'm referring to the design resource interface for adding properties to a component on the community builder page. I'm going to update my question with a screenshot.
    – kev_panda
    Commented Jun 23, 2016 at 23:12

1 Answer 1

12

At this point only attributes that are supported are String , boolean and int .

So this is how the design file will look

<design:component>
  <design:attribute name="SearchString" label="Search" description="Please add Search merge variable" />
  <design:attribute name="isValid" label="Valid" description="Checkbox" />
</design:component>

The design file will map to component attribute value .Note there is strict mapping with name of attribute matching to one is component

<aura:attribute name="SearchString" type="String" default="{!searchString}" access="global"/>
 <aura:attribute name="isValid" type="String" default="false" access="global"/>

You can also have a picker

<design:attribute name="Name" datasource="value1,value2,value3" default=”value1” />

Richtext is not possible currently .

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .