diff --git a/README.md b/README.md index ac3b6d3..51bc3e5 100644 --- a/README.md +++ b/README.md @@ -181,6 +181,7 @@ You can style these components with `style` or `className`. ### Configuration properties: + - _plain_ if you want only the table component to be returned without page size, pagination, or filter (will not use bootstrap grid) - _showPageSize_ if page size select should be shown - _showFilter_ if text filter field should be shown - _defaultPageSize_ overrides the default page size (if not specified 5 will be used) diff --git a/src/sematable.js b/src/sematable.js index 6ef888b..0f518cc 100644 --- a/src/sematable.js +++ b/src/sematable.js @@ -185,6 +185,20 @@ const sematable = (tableName, TableComponent, columns, configs = {}) => { select, }; + if (configs.plain) { + return ( + + ); + } + return (