| | |
| | | |
| | | this.setState({ |
| | | title: config.plot ? config.plot.title : config.wrap.title, |
| | | show: !['normaltable', 'propcard'].includes(config.subtype) && config.search && config.search.length > 0 |
| | | show: !['normaltable', 'propcard', 'editable'].includes(config.subtype) && config.search && config.search.length > 0 |
| | | }) |
| | | } |
| | | |
| | |
| | | if (!title && !show) return null |
| | | |
| | | return ( |
| | | <div className="normal-header" style={config.headerStyle}> |
| | | <div className={'normal-header' + (show ? ' header-search' : '')} style={config.headerStyle}> |
| | | <span className="title">{title}</span> |
| | | {show ? <SearchComponent config={config} BID={BID} menuType={menuType} refreshdata={this.props.refresh}/> : null} |
| | | </div> |