SalesforceLabs / EnhancedLightningGrid

Component that allows you to sort and filter data within the Lightning Experience. Use as a replacement for a Related List, or create a new grid that shows results from a custom query.
BSD 3-Clause "New" or "Revised" License
137 stars 97 forks source link

Columns that have no filters create whitespace in the filter section #70

Open the-last-byte opened 2 years ago

the-last-byte commented 2 years ago

It would be expected that a column with no filter will not create an empty section in the layout.

image

image

final sortablegrid.SDGField relatedToField = new sortablegrid.SDGField(
            FIELD_ID_RELATED_TO,
            'Related To',
            'What.Name',
            'STRING',
            '',
            true,
            false,
            false,
            null,
            2
        );
        final sortablegrid.SDGField activityDateField = new sortablegrid.SDGField(
            FIELD_ID_ACTIVITY_DATE,
            'Due Date',
            'ActivityDate',
            'DATE',
            '',
            true,
            false,
            false,
            null,
            3
        );
        final sortablegrid.SDGField statusField = new sortablegrid.SDGField(
            FIELD_ID_STATUS,
            'Status',
            'Status',
            'PICKLIST',
            '',
            true,
            true,
            false,
            null,
            4
        );
        final sortablegrid.SDGField assignedToField = new sortablegrid.SDGField(
            FIELD_ID_ASSIGNED_TO,
            'Assigned To',
            'Owner.Name',
            'PICKLIST',
            '',
            true,
            true,
            false,
            null,
            5
        );
the-last-byte commented 2 years ago

@flindsaySFDC I am happy to put out some fixes - but the pull request will need to be answered and approved.