![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@covalent/data-table
Advanced tools
td-data-table
element generates a data driven table layout sorting events.
Use [tdDataTableTemplate] directive for template support which gives context access to [value], [row] and [column].
Properties:
Name | Type | Description |
---|---|---|
data | any[] | Rows of data to be displayed. |
columns | ITdDataTableColumn[] | List of columns to be displayed. |
selectable? | boolean | Enables row selection events, hover and selected row states. |
multiple? | boolean | Enables multiple row selection. [selectable] needs to be enabled. |
sortable? | boolean | Enables sorting events, sort icons and active column states. |
sortBy? | string | Sets the active sort column. [sortable] needs to be enabled. |
sortOrder? | TdDataTableSortingOrder | Sets the sort order of the [sortBy] column. [sortable] needs to be enabled. Defaults to 'ASC' or TdDataTableSortingOrder.Ascending |
sortChange | function | Event emitted when the column headers are clicked. [sortable] needs to be enabled. Emits an [ITdDataTableSortEvent] implemented object. |
rowSelect | function | Event emitted when a row is selected/deselected. [selectable] needs to be enabled. Emits an [ITdDataTableSelectEvent] implemented object. |
Import the [CovalentDataTableModule] using the forRoot() method in your NgModule:
import { CovalentDataTableModule } from '@covalent/data-table';
@NgModule({
imports: [
CovalentDataTableModule.forRoot(),
...
],
...
})
export class MyModule {}
Example for HTML usage:
<td-data-table
[data]="data"
[columns]="columns"
[selectable]="true|false"
[multiple]="true|false"
[sortable]="true|false"
[sortBy]="sortBy"
[sortOrder]="'ASC'|'DESC'"
(sortChange)="sortEvent($event)"
(rowSelect)="selectEvent($event)">
<template tdDataTableTemplate="columnName" let-value="value" let-row="row" let-column="column">
<div layout="row">
<span flex>{{value}}</span> // or <span flex>{{row[column]}}</span>
<md-icon>star</md-icon>
</div>
</template>
</td-data-table>
FAQs
Teradata UI Platform Data Table Module
We found that @covalent/data-table demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.