Skip to content

0.1.0

Choose a tag to compare

@damyanpetev damyanpetev released this 10 Dec 16:54
· 3 commits to master since this release

Changed

  • BREAKING: Column configuration is now declarative using <igc-grid-lite-column> elements instead of the columns property.
    The columns property is now read-only and returns the current column configuration.

    Before:

    <igc-grid-lite .data=${data} .columns=${columns}></igc-grid-lite>
    const columns: ColumnConfiguration<User>[] = [
      { key: 'id', headerText: 'User ID', type: 'number', filter: true, sort: true },
      { key: 'name', filter: true, sort: true },
    ];

    After:

    <igc-grid-lite .data=${data}>
      <igc-grid-lite-column
        key="id"
        header-text="User ID"
        type="number"
        .filter=${true}
        .sort=${true}
      ></igc-grid-lite-column>
      <igc-grid-lite-column
        key="name"
        .filter=${true}
        .sort=${true}
      ></igc-grid-lite-column>
    </igc-grid-lite>
  • BREAKING: Renamed GridSortConfiguration type to GridLiteSortingOptions.

  • BREAKING: Renamed IgcGridLite.sortConfiguration property to sortingOptions.

  • BREAKING: Renamed IgcGridLite.sortExpressions property to sortingExpressions.

  • BREAKING: Renamed SortExpression type to SortingExpression.

  • BREAKING: Renamed BaseSortExpression type to BaseSortingExpression.

  • BREAKING: GridLiteSortingOptions.multiple boolean property has been replaced with mode property that accepts 'single' or 'multiple' string values.

    • Before: grid.sortConfiguration = { multiple: true, triState: true }
    • After: grid.sortingOptions = { mode: 'multiple' }

Removed

  • BREAKING: triState property has been removed from GridLiteSortingOptions. Tri-state sorting is now always enabled.