Whether the grid will try to "resolve" its column configuration based on the passed data source.
This is usually executed on initial rendering in the DOM. It depends on having an existing data source to infer the column configuration for the grid. Passing an empty data source or having a late bound data source (such as a HTTP request) will usually result in empty column configuration for the grid.
This property is ignored if any existing column configuration already exists in the grid.
In a scenario where you want to bind a new data source and still keep the auto-generation behavior, make sure to reset the column collection of the grid before passing in the new data source.
Column configuration for the grid.
The data source for the grid.
Configuration object which controls remote data operations for the grid.
Sort configuration property for the grid.
Returns the state of the data source after sort/filter operations have been applied.
Get the filter state for the grid.
Returns the collection of rendered row elements in the grid.
Get the sort state for the grid.
The total number of items in the ApexGrid.dataView collection.
Performs a filter operation in the grid based on the passed expression(s).
Returns a ColumnConfiguration for a given column.
Performs a sort operation in the grid based on the passed expression(s).
Updates the column configuration of the grid.
StaticstylesArray of styles to apply to the element. The styles should be defined using the css tag function, via constructible stylesheets, or imported from native CSS module scripts.
Note on Content Security Policy:
Element styles are implemented with <style> tags when the browser doesn't
support adopted StyleSheets. To use such <style> tags with the style-src
CSP directive, the style-src value must either include 'unsafe-inline' or
nonce-<base64-value> with <base64-value> replaced be a server-generated
nonce.
To provide a nonce to use on generated <style> elements, set
window.litNonce to a server-generated nonce in your page's HTML, before
loading application code:
<script>
// Generated and unique per request:
window.litNonce = 'a1b2c3d4';
</script>
Apex grid is a web component for displaying data in a tabular format quick and easy.
Out of the box it provides row virtualization, sort and filter operations (client and server side), the ability to template cells and headers and column hiding.
Element
apex-grid
Fires
sorting - Emitted when sorting is initiated through the UI.
Fires
sorted - Emitted when a sort operation initiated through the UI has completed.
Fires
filtering - Emitted when filtering is initiated through the UI.
Fires
filtered - Emitted when a filter operation initiated through the UI has completed.