ng-matero / extensions

Angular Material Extensions Library.
https://ng-matero.github.io/extensions/
MIT License
393 stars 48 forks source link

Data Grid Custom Toolbar #11

Closed RedonAlla closed 4 years ago

RedonAlla commented 4 years ago

Great work. I have a question, is it possible to add custom items on Data Grid Toolbar? I want to add a 'Add Button' and a 'Search Textbox'

Or better put 'Columns Shown' button outside 'mtx-grid' component?

RedonAlla commented 4 years ago

Another question. I want to store tables columns visibility and order in database. Is there a callback to store the configs in database and load configs from database?

And the last thing, in Data Grid is missing error state, or I can't find how to implement it?

nzbin commented 4 years ago

Great work. I have a question, is it possible to add custom items on Data Grid Toolbar? I want to add a 'Add Button' and a 'Search Textbox'

Or better put 'Columns Shown' button outside 'mtx-grid' component?

The toolbar template has been added.

nzbin commented 4 years ago

Another question. I want to store tables columns visibility and order in database. Is there a callback to store the configs in database and load configs from database?

And the last thing, in Data Grid is missing error state, or I can't find how to implement it?

The grid columns have no two binding now. You can set hide property value of column definition manually.

RedonAlla commented 4 years ago

Great work. I have a question, is it possible to add custom items on Data Grid Toolbar? I want to add a 'Add Button' and a 'Search Textbox' Or better put 'Columns Shown' button outside 'mtx-grid' component?

The toolbar template has been added.

THNX. Any example how to use it?

RedonAlla commented 4 years ago

Another question. I want to store tables columns visibility and order in database. Is there a callback to store the configs in database and load configs from database? And the last thing, in Data Grid is missing error state, or I can't find how to implement it?

The grid columns have no two binding now. You can set hide property value of column definition manually.

what I wanted is an event when column order/visibility change, to detect column order and witch column is checked as visible/invisible

nzbin commented 4 years ago

Great work. I have a question, is it possible to add custom items on Data Grid Toolbar? I want to add a 'Add Button' and a 'Search Textbox' Or better put 'Columns Shown' button outside 'mtx-grid' component?

The toolbar template has been added.

THNX. Any example how to use it?

https://github.com/ng-matero/extensions/blob/65979c57e62c6a0412618d2a4a86ddfa105c2921/projects/demos/src/app/data-grid/data-grid-demo.component.html#L157-L165

nzbin commented 4 years ago

Another question. I want to store tables columns visibility and order in database. Is there a callback to store the configs in database and load configs from database? And the last thing, in Data Grid is missing error state, or I can't find how to implement it?

The grid columns have no two binding now. You can set hide property value of column definition manually.

what I wanted is an event when column order/visibility change, to detect column order and witch column is checked as visible/invisible

(columnHidingChange) and (columnMovingChange) You can review the docs. I will update the examples today.