2

I have one attribute that is exposed in the Lightning App Builder.

enter image description here

It is an attribute in my component specified as:

<aura:attribute name="stepObjectFields" type="String" default="" access="GLOBAL" description="A list of objects and fields, using special formatting to indicate different uses for the item in the list" />

And exposed int he Lightning App Builder using the lightning component design file:

<design:component >
    <design:attribute name="stepObjectFields" label="Step Object Fields" />
</design:component>

However, this input field has a couple special notations users have to use in order to make the component work like they want.

Is it possible to add any sort of help text, or placeholder text in the Lightning App Builder for this attribute to give users information on how to properly fill out the field?

  • Your question would have been hugely improved by mentioning you are working with a design file and including some sample markup. – Adrian Larson Jan 2 at 22:52
4

You can add the placeholder with the placeholder attribute in design file .

<design:component label="Hello World">
    <design:attribute name="subject" label="Subject" description="Name of the person you want to greet" />
    <design:attribute name="greeting" label="Greeting" placeholder="Hello"/>
</design:component>

Refer to the documentation here

  • 1
    Thanks for the documentation! My Googling did not get me there :(. But the description and placeholder are just what I need. – Tyler Dahle Jan 2 at 23:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.