From 401c77346e775060e8add0bd61b0d5215c71bdd0 Mon Sep 17 00:00:00 2001 From: jlacancellera Date: Thu, 5 Nov 2020 17:04:51 +0100 Subject: [PATCH 1/3] chore(docs): add another `pageOptions` example in table component doc --- src/components/table/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/table/README.md b/src/components/table/README.md index 767dd4a3843..7ca34278c99 100644 --- a/src/components/table/README.md +++ b/src/components/table/README.md @@ -3081,7 +3081,10 @@ your app handles the various inconsistencies with events. totalRows: 1, currentPage: 1, perPage: 5, - pageOptions: [5, 10, 15], + pageOptions: [5, 10, 15, { + value: 100, + text: "show a lot" + }], sortBy: '', sortDesc: false, sortDirection: 'asc', From 83fd0084810180d7efe49741d9d64600c0ea770f Mon Sep 17 00:00:00 2001 From: Joris La Cancellera Date: Thu, 5 Nov 2020 17:46:28 +0100 Subject: [PATCH 2/3] chore(docs): correct a sentence in table component doc chore(docs): correct a sentence in table component doc --- src/components/table/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/table/README.md b/src/components/table/README.md index 7ca34278c99..c468ce87f8e 100644 --- a/src/components/table/README.md +++ b/src/components/table/README.md @@ -2202,8 +2202,7 @@ The provider function is called with the following signature: provider(ctx, [callback]) ``` -The `ctx` is the context object associated with the table state, and contains the following five -properties: +The `ctx` is the context object associated with the table state, and contains the following properties: | Property | Type | Description | | ------------- | -------------------------- | --------------------------------------------------------------------------------- | From 1af4160952e39986b8d6427f6dccfa8b1aa8e095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20M=C3=BCller?= Date: Thu, 5 Nov 2020 19:31:35 +0100 Subject: [PATCH 3/3] Update README.md --- src/components/table/README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/table/README.md b/src/components/table/README.md index c468ce87f8e..4af66b1ccd8 100644 --- a/src/components/table/README.md +++ b/src/components/table/README.md @@ -2202,7 +2202,8 @@ The provider function is called with the following signature: provider(ctx, [callback]) ``` -The `ctx` is the context object associated with the table state, and contains the following properties: +The `ctx` is the context object associated with the table state, and contains the following +properties: | Property | Type | Description | | ------------- | -------------------------- | --------------------------------------------------------------------------------- | @@ -3063,11 +3064,11 @@ your app handles the various inconsistencies with events. { isActive: false, age: 29, name: { first: 'Dick', last: 'Dunlap' } } ], fields: [ - { key: 'name', label: 'Person Full name', sortable: true, sortDirection: 'desc' }, + { key: 'name', label: 'Person full name', sortable: true, sortDirection: 'desc' }, { key: 'age', label: 'Person age', sortable: true, class: 'text-center' }, { key: 'isActive', - label: 'is Active', + label: 'Is Active', formatter: (value, key, item) => { return value ? 'Yes' : 'No' }, @@ -3080,10 +3081,7 @@ your app handles the various inconsistencies with events. totalRows: 1, currentPage: 1, perPage: 5, - pageOptions: [5, 10, 15, { - value: 100, - text: "show a lot" - }], + pageOptions: [5, 10, 15, { value: 100, text: "Show a lot" }], sortBy: '', sortDesc: false, sortDirection: 'asc',