Blog

Lightning Component For Wrapper class with Field c

Innovalleyworks

Just wonder about how page layout works with sObjects, how easy to customize the page fields and buttons.

Can’t we make similar build for our own custom wrapper classes or some Json data comes from third party system ?

Yes! We can customize the wrapper class fields on lightning component with below set of codings.

Lightning Component For Wrapper class with Field customization

1. A wrapper class for field description

Lightning Component For Wrapper class with Field c

2. Prepare a component to use this wrapper and create custom components in it for each data type.

Lightning Component For Wrapper class with Field c

3. Controller & Helper classes

Lightning Component For Wrapper class with Field c

Now our field component is ready for deployment.

Lightning Component For Wrapper class with Field c

5. Go with a component for our real time data wrapper class or Json

Lightning Component For Wrapper class with Field c

6. Get the field details from Custom settings, so that any user can customize it to re-order fields & enable a field to display.

Lightning Component For Wrapper class with Field c

7. The component code will looks like this to accommodate each field

Lightning Component For Wrapper class with Field c

8. Helper to bind each field as compnent.

 

Lightning Component For Wrapper class with Field c

Finally our lightning component ready for a wrapper class with custom settings to customize the layout.

We are Innovalleyworks , We are a passionate team of developers, best thinkers and consultants who can solve anything and everything.
With our highly engaging team, you can easily bring the vision to all your business ventures come true.
We have team, put your problem, get your solution