You need to sign in to do that
Don't have an account?
Shannon VE
lightning component field with vertical scroll bar
I'm working on my first "real" lightning component, trying to extend what I've learned through a couple Trailhead trails and other Lightning component examples to my own real world component, but I can't figure out how to make a field look a certain way.
My scenario is this, I have a custom object with one or many contacts related to it. I'm creating a record page component to show Activities related to the contacts who are related to my custom object record. I have an Apex class returning the activity records and my lightning component is showing those records. However, the Activity Description field in my component extends in size to show all of the text within the Description. I can't figure out how to add a vertical scroll bar to my field.
I'd like to try to mimick one of the features of the standard Activities component, where the Description field is set to show the first 10 lines and offers a vertical scroll bar to see more.
What type of component item provides the means to show the vertical scroll bar and limit its size?
Here's an example, where my component extends the Activity Description field to fit the text.
Here's the standard Activity component where the Description is limited to 10 lines and offers a scroll bar to show more.
My scenario is this, I have a custom object with one or many contacts related to it. I'm creating a record page component to show Activities related to the contacts who are related to my custom object record. I have an Apex class returning the activity records and my lightning component is showing those records. However, the Activity Description field in my component extends in size to show all of the text within the Description. I can't figure out how to add a vertical scroll bar to my field.
I'd like to try to mimick one of the features of the standard Activities component, where the Description field is set to show the first 10 lines and offers a vertical scroll bar to see more.
What type of component item provides the means to show the vertical scroll bar and limit its size?
Here's an example, where my component extends the Activity Description field to fit the text.
Here's the standard Activity component where the Description is limited to 10 lines and offers a scroll bar to show more.
var oTextarea = component.find("comments"); oTextarea.set("v.value", message);
The result seems close to your pattern with some differences (rounded icon instead of squared with a white background, the line on the left side doesn't appear at the beginning).
Regards
All Answers
var oTextarea = component.find("comments"); oTextarea.set("v.value", message);
The result seems close to your pattern with some differences (rounded icon instead of squared with a white background, the line on the left side doesn't appear at the beginning).
Regards
The solution is short but each detail is important.