import React from 'react'; import FormGroup from 'react-bootstrap/es/FormGroup'; import Button from 'react-bootstrap/es/Button'; import InputGroup from 'react-bootstrap/es/InputGroup'; import SearchTypeahead from '../SearchTypeahead'; // Header.SearchForm export default class SearchForm extends React.Component { constructor(props) { super(props); this.crowi = window.crowi; // FIXME this.state = { searchError: null, }; this.onSearchError = this.onSearchError.bind(this); this.onChange = this.onChange.bind(this); this.onSubmit = this.onSubmit.bind(this); } componentDidMount() { } componentWillUnmount() { } onSearchError(err) { this.setState({ searchError: err, }); } onChange(selected) { const page = selected[0]; // should be single page selected // navigate to page if (page != null) { window.location = page.path; } } getHelpElement() { return (
keyword |
記事名 or 本文に"keyword"を含む |
|---|---|
a b |
文字列"a"と"b"を含む (スペース区切り) |
-keyword |
文字列"keyword"を含まない |