Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/oui-datagrid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Clicked row action 1: <span ng-if="$ctrl.action1Row">{{$ctrl.action1Row.lastName
```html:preview
<oui-datagrid
rows="$ctrl.emptyList"
empty-placeholder="There's no bananas here, sorry :("
page-size="5">
<oui-column title="'First name'" property="firstName" sortable="asc"></oui-column>
<oui-column title="'Last name'" property="lastName" sortable></oui-column>
Expand Down Expand Up @@ -687,6 +688,7 @@ call `rows-loader` and then a `row-loader` call for each line.
| `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-placeholder` | string | @? | yes | n/a | n/a | custom placeholder text when there is no data
| `customizable` | boolean | <? | no | `true`, `false` | `false` | if the datagrid is customizable
| `selectable-rows` | boolean | <? | no | `true`, `false` | `false` | if rows can be selected
| `columns-parameters` | array | <? | no | n/a | `undefined` | columns parameters (see below)
Expand Down
1 change: 1 addition & 0 deletions packages/oui-datagrid/src/datagrid.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default () => {
rows: "<?",
rowsLoader: "&?",
rowLoader: "&?",
emptyPlaceholder: "@?",
onColumnsParametersChange: "&"
},
compile: elm => {
Expand Down
2 changes: 1 addition & 1 deletion packages/oui-datagrid/src/datagrid.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
ng-attr-colspan="{{ $ctrl.columns.length }}"
>
<span ng-if="!$ctrl.loading && !$ctrl.firstLoading"
ng-bind="$ctrl.config.translations.emptyPlaceholder"></span>
ng-bind="::$ctrl.emptyPlaceholder || $ctrl.config.translations.emptyPlaceholder"></span>
<oui-spinner ng-if="$ctrl.loading || $ctrl.firstLoading"
size="s"></oui-spinner>
</td>
Expand Down