|
|
@@ -159,7 +159,6 @@ export default class SearchTypeahead extends React.Component {
|
|
|
const defaultSelected = (this.props.keywordOnInit != '')
|
|
|
? [{path: this.props.keywordOnInit}]
|
|
|
: [];
|
|
|
- const help = this.getHelpElement();
|
|
|
|
|
|
return (
|
|
|
<div className="search-typeahead">
|
|
|
@@ -180,36 +179,12 @@ export default class SearchTypeahead extends React.Component {
|
|
|
renderMenuItemChildren={this.renderMenuItemChildren}
|
|
|
caseSensitive={false}
|
|
|
defaultSelected={defaultSelected}
|
|
|
- promptText={help}
|
|
|
+ promptText={this.props.promptText}
|
|
|
/>
|
|
|
{restoreFormButton}
|
|
|
</div>
|
|
|
);
|
|
|
}
|
|
|
-
|
|
|
- getHelpElement() {
|
|
|
- // TODO disabled temporary -- 2018.07.20 Yuki Takei
|
|
|
- return <span>(TBD) Show Help</span>;
|
|
|
- // return <table className="table table-borderd search-help">
|
|
|
- // <caption className="text-center">Search Help</caption>
|
|
|
- // <tr>
|
|
|
- // <td className="text-center">keyword</td>
|
|
|
- // <th>記事名 or カテゴリ or 本文にkeywordを含む</th>
|
|
|
- // </tr>
|
|
|
- // <tr>
|
|
|
- // <td className="text-center">title:keyword</td>
|
|
|
- // <th>記事名にkeywordを含む</th>
|
|
|
- // </tr>
|
|
|
- // <tr>
|
|
|
- // <td className="text-center">a b</td>
|
|
|
- // <th>文字列aとbを含む(スペース区切り)</th>
|
|
|
- // </tr>
|
|
|
- // <tr>
|
|
|
- // <td className="text-center">-keyword</td>
|
|
|
- // <th>文字列keywordを含まない</th>
|
|
|
- // </tr>
|
|
|
- // </table>;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -224,6 +199,7 @@ SearchTypeahead.propTypes = {
|
|
|
emptyLabel: PropTypes.string,
|
|
|
placeholder: PropTypes.string,
|
|
|
keywordOnInit: PropTypes.string,
|
|
|
+ promptText: PropTypes.object,
|
|
|
};
|
|
|
|
|
|
/**
|