From 7bd74d6b3b46ea6d58b5acde70a0638b3a56cd61 Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 17 Mar 2022 09:14:01 +0100 Subject: [PATCH] feat(smart-table): add defaultSearch option --- front/core/components/smart-table/index.js | 3 +++ front/core/components/smart-table/table.scss | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/front/core/components/smart-table/index.js b/front/core/components/smart-table/index.js index b0b4d90dc..84c963e8e 100644 --- a/front/core/components/smart-table/index.js +++ b/front/core/components/smart-table/index.js @@ -32,6 +32,9 @@ export default class SmartTable extends Component { this._options = options; if (!options) return; + if (options.defaultSearch) + this.displaySearch(); + const activeButtons = options.activeButtons; const missingId = activeButtons && activeButtons.shownColumns && !this.viewConfigId; if (missingId) diff --git a/front/core/components/smart-table/table.scss b/front/core/components/smart-table/table.scss index 95d8efb49..c38c149ca 100644 --- a/front/core/components/smart-table/table.scss +++ b/front/core/components/smart-table/table.scss @@ -37,10 +37,6 @@ smart-table table { &[centered] { text-align: center; } - &[mid] { - width: 150px; - max-width: 150px; - } &[shrink] { width: 1px; text-align: center;