mazdik

Results 19 comments of mazdik

```ts getDescendants(row: Row) { const results = []; for (let i = row.$$index + 1; i < this.rows.length && row.$$level < this.rows[i].$$level; i++) { results.push(this.rows[i]); } return results; } partiallySelectedRow(row)...

```ts onCheckboxClick(row: Row) { this.table.selection.toggle(row.$$index); this.table.events.onCheckbox(row); } ```

[update multi select demo](https://github.com/mazdik/ng-crud-table/commit/d7c21d66836bccf4d1652a02f7c708ba8202a132) position absolute instead of fixed

column.formTemplate ```html {{dynElement.title}} ``` ```ts @ViewChild('formTemplate', {static: true}) formTemplate: TemplateRef; ngOnInit() { const column = this.dataManager.columns.find(x => x.name === 'name'); column.formTemplate = this.formTemplate; } onFormValueChange(dynElement, value) { this.dataManager.item[dynElement.name] = value;...

when you open the edit form window: ```js updateAction(row: Row) { this.dataManager.item = row; this.modalEditForm.isNewItem = false; this.modalEditForm.detailView = false; this.modalEditForm.open(); } ``` you can try something like: ```js this.dataManager.item...

Here is an example: [custom-row-action-demo](https://mazdik.github.io/ng-mazdik/#/custom-row-action-demo) [source](https://github.com/mazdik/ng-mazdik/blob/master/src/app/demo/custom-row-action-demo.component.ts)

```ts import {DtMessages, DtMessagesEn} from 'ng-mazdik-lib'; messages: DtMessages = new DtMessagesEn({ empty: 'No data to display', titleDetailView: 'Item details', titleCreate: 'Create a new item' }); this.dataManager = new DataManager(this.columns, this.settings,...

names are taken from column.title

```js constructor(private element: ElementRef) {} ngOnInit() { this.columns = getColumnsPlayers(); this.columns.splice(4); const width = this.getFullWidth() / this.columns.length; this.columns.forEach(x => x.width = width); this.table = new DataTable(this.columns, this.settings); } getFullWidth(): number...

```js constructor(private element: ElementRef) {} ngOnInit() { this.columns = getColumnsPlayers(); this.columns.splice(4); const width = this.getFullWidth() / this.columns.length; this.columns.forEach(x => x.width = width); this.table = new DataTable(this.columns, this.settings); } getFullWidth(): number...