From 87cd4157c9da7a15ab4c77abb7b861b4e693a50c Mon Sep 17 00:00:00 2001 From: Hermann Blum <hermannsblum@yahoo.de> Date: Fri, 16 Mar 2018 13:16:24 +0100 Subject: [PATCH] update documentation of tableView --- src/views/tableView.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/views/tableView.js b/src/views/tableView.js index 8e55075..f46a3ba 100644 --- a/src/views/tableView.js +++ b/src/views/tableView.js @@ -33,16 +33,13 @@ export default class TableView { /* Shows a table of objects for a given API resource. * * Required attributes: - * - resource: a string of the API resource to display, e.g. 'users' + * vnode: { attrs: { controller, titles, keys } } + * - controller: a listcontroller for some API resource data + * - titles: the titles of the table * - keys: Keys of this resource to display as columns, e.g. ['firstname'] * Works with embedded resources, i.e. if you add * { embedded: { event: 1 } } to a list of eventsignups, * you can display event.title_de as a table key - * Addutional attirbutes: - * - query: A query object that is valid accoring to - * http://python-eve.org/features.html#Filtering - * https://docs.mongodb.com/v3.2/reference/operator/query/ - * e.g. : { where: {name: somename } } */ constructor({ attrs: { keys } }) { this.search = ''; @@ -99,7 +96,7 @@ export default class TableView { updateList(); }, }, - fullWidth: true, + fullWidth: false, }), m(Button, { className: 'blue-button', -- GitLab