Starcounter / Starcounter.Uniform

Helper library for server-side part of uniform components.
MIT License
0 stars 0 forks source link

Implement UniDataTable helper #3

Closed warpech closed 6 years ago

warpech commented 6 years ago

Implement UniDataTable helper for the custom element <uni-data-table> (development of which is tracked in https://github.com/Starcounter/uniform.css/issues/112)

UniDataTable can be used for:

The row view-models can be bound to database objects.

cc @joozek78

warpech commented 6 years ago

Requirements previously stated by @miyconst in https://github.com/Starcounter/RebelsLounge/issues/224#issuecomment-349266838. Not all of them should be implemented in the first phase, but we should keep in mind to approach most of them eventually.


In Entity Framework using a custom made server side + client side library I am able to make a fully functional CRUD data grid with pagination, column filters, column sorting, and all the features described below within half an hour. The same thing in Starcounter would require at least a few days. Any business system, CRM or anything like that contains multiple CRUD pages, and spending for a few days per page is simply way too expensive.

Starcounter should have an easy way to implement fully functional CRUD page over a data table within an hour.

The proposed solution should have:

warpech commented 6 years ago

Agreed on the yesterday meeting between: @PatrykSzwer, @joozek78, @tomalec, @platosha and me:

In C# there will be a way to declare columns in order to use them for sorting, filtering, etc. These columns will be a source of input for uni-data-table, but not the exclusive source of input (the other being <uni-data-table-column>.

The columns defined by C# will render as readonly text by default. If a different rendering is needed for presentation, the renderer can be overridden in <uni-data-table-column property-name=""> where the value of property-name attribute matches the identifier of the column.

@PatrykSzwer and @joozek78 will propose changes to the view-model, defined in https://github.com/Starcounter/uniform.css/blob/master/components/uni-data-table/README.md

warpech commented 6 years ago

Closing as done in https://github.com/Starcounter/Starcounter.Uniform/tree/1.0.0

The features from https://github.com/Starcounter/Starcounter.Uniform/issues/3#issuecomment-400352936 shipped so far:

Anyone who wants more features implemented, please open an issue for a particular feature.