You need to sign in to do that
Don't have an account?
dev per
Creating a Dynamic HTML table in Apex class
Hi,
Can anyone please provide me a sample code to define a method in an apex class , that would take input parameters for header of a table, list of records to display in the rows and styling for the table itslef. Basically this method should output HTML string which will be rendered in VF.
The table has to be dynamic, meaning that depending on the header values provided, it should be able to spit out corresponding HTML table string. so if there are 3 headers provided then the table should only show three columns.
Can anyone please help with a sample code for this. Thanks!
Can anyone please provide me a sample code to define a method in an apex class , that would take input parameters for header of a table, list of records to display in the rows and styling for the table itslef. Basically this method should output HTML string which will be rendered in VF.
The table has to be dynamic, meaning that depending on the header values provided, it should be able to spit out corresponding HTML table string. so if there are 3 headers provided then the table should only show three columns.
Can anyone please help with a sample code for this. Thanks!
All Answers
Mark as answered if oyu dont have anymore questiosn