• Soporte Sistemas
  • NEWBIE
  • 0 Points
  • Member since 2023

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I'm trying to remove a column in lwc when certain condition is met. Is there any attribute or something from which i can make the visiblity of column true/false. 
@track hideCoulmn;
    @track columns = [
        {
            label: "column1",
            hideDefaultActions: "true",
            editable: false,
            sortable: false },
        {
            label: "column2",
            fieldName: "culomn2___c",
            type: "text",
            hideDefaultActions: "true",
            editable: false,
            sortable: false,
           //needs to be hidden when hideColumn=true
        },
so can i have @track property called @track hideCoulmn and make it true/false whenever i need and by that hide the column? is it possible?
  • August 09, 2021
  • Like
  • 0