You need to sign in to do that
Don't have an account?
Balu Phrabha123
Data table resizing for the column.
HI all,
I need to fix the the width size for zip and HQ.
i am using below code but not working.
label: 'Zip', sortable: true, fieldName: 'postalCode', width:80, type: 'text'},
{label: 'HQ', sortable: true, fieldName: 'headquarter', width:20, type: 'text'}
Regards,
Azad V
I need to fix the the width size for zip and HQ.
i am using below code but not working.
label: 'Zip', sortable: true, fieldName: 'postalCode', width:80, type: 'text'},
{label: 'HQ', sortable: true, fieldName: 'headquarter', width:20, type: 'text'}
Regards,
Azad V
label: 'Zip', sortable: true, fieldName: 'postalCode', initialWidth:80, type: 'text'},
{label: 'HQ', sortable: true, fieldName: 'headquarter', initialWidth:20, type: 'text'}
All Answers
If you try changing the width:80 from 80 to another number smaller is it working can you check it once.
Regards,
Anutej
It looks like our team of experts can help you resolve this ticket. We have Salesforce global help-desk support and you can log a case and our Customer Success Agents will help you solve this issue. You can also speak to them on live chat. Click on the below link to contact our help-desk. Trust me it is a support service that we are offering for free!
https://jbshelpdesk.secure.force.com
Thanks,
Jarvis SFDC team
label: 'Zip', sortable: true, fieldName: 'postalCode', initialWidth:80, type: 'text'},
{label: 'HQ', sortable: true, fieldName: 'headquarter', initialWidth:20, type: 'text'}
For the data table i need to show the "$" in front of Revenue.
Example: $98574.87M
{ label: 'Revenue', sortDirection: 'desc' ,sortable: true, initialWidth:120, fieldName: 'prospectRevenue', type: 'text'},
{ label: 'Industry', sortable: false, fieldName: 'naics6Description', type: 'text'},
{ label: 'City', sortable: true, fieldName: 'city', initialWidth:120, type: 'text'},
{ label: 'Zip', sortable: true, fieldName: 'postalCode', initialWidth:80, type: 'text'},
{ label: 'HQ', sortable: true, fieldName: 'headquarter', initialWidth:80, type: 'text'}
for showing revenue logic. Please see below code for reference.
// Revenue logic
jsresult.prospectSummary.forEach(function(record){
if(record.prospectRevenue){
record.prospectRevenue = Math.round(Math.abs(Number(record.prospectRevenue)) / 1.0e+6 *100)/100 + "M";
console.log('Revenue in Millions', record.prospectRevenue);
}
Regards,
Balu
{ label: 'Revenue', sortDirection: 'desc' ,sortable: true, initialWidth:120, fieldName: 'prospectRevenue', type: 'currency' , typeAttributes: { currencyCode: 'USD'}},,