Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.

Conversation

euhmeuh
Copy link
Contributor

@euhmeuh euhmeuh commented Aug 30, 2018

Add a way to specify the text when there's no elements in a datagrid.

Copy link
Contributor

@FredericEspiau FredericEspiau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice but update the property table 👍

Copy link
Contributor

@AxelPeter AxelPeter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to commit the build files. Those are generated with each release.
Could you remove them ?

If needed in another project, prefer using another branch (eg. build/empty-text-datagrid)

| `rows` | array | <? | yes | n/a | n/a | rows to show
| `rows-loader` | function | &? | yes | n/a | n/a | gets all rows (returns a promise with all rows)
| `row-loader` | function | &? | yes | n/a | n/a | gets row details (returns a promise with details)
| `empty-text` | string | @? | no | n/a | n/a | custom placeholder text when there is no data
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should go with empty-placeholder, since we use emptyPlaceholder in the translations provider

>
<span ng-if="!$ctrl.loading && !$ctrl.firstLoading"
ng-bind="$ctrl.config.translations.emptyPlaceholder"></span>
ng-bind="$ctrl.emptyText || $ctrl.config.translations.emptyPlaceholder"></span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be one-time binded.
Don't forget to update the API table too :)

@euhmeuh euhmeuh force-pushed the feat/empty-text-datagrid branch from dee0b7f to b9ffb59 Compare September 3, 2018 15:37
@ovh-ux ovh-ux deleted a comment from ovh-cds Sep 4, 2018
@ovh-ux ovh-ux deleted a comment from ovh-cds Sep 4, 2018
@AxelPeter AxelPeter merged commit 09b5c73 into develop Sep 4, 2018
@AxelPeter AxelPeter deleted the feat/empty-text-datagrid branch September 4, 2018 08:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

4 participants