As seen in the screenshot below I need to add arrow down utility icon next to up arrow. How to do it within the same cell? And also I need to align it to the right of the cell

enter image description here

 clauseColumns = [
    {label : 'Selected Clauses', fieldName : 'headingName',
     cellAttributes:{ iconName: 'utility:up', Name: 'Up', alignment: 'Right'}},

You can add only one icon in one cell at a time. You need to extend the standard lightning datatable by adding the custom data type. Check the Creating Custom Data Types section from this document.

Also, you can set the icon position to left or right using the iconPosition cell attribute in case you need only a single icon.

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.