import * as React from 'react'; import { SingleNumber, Bound, databind, ExcelExport, Pagination, ResultsList, SearchBox, CheckFacet, ResultsLayout, PaginationData } from 'solrkit'; import { AppDataStore } from './data/AppDataStore'; import { Document } from './data/Document'; import { Link } from 'react-router-dom'; import { Popup } from 'semantic-ui-react'; const dataStore = new AppDataStore(); function popup( condition: boolean, component: JSX.Element, tooltip: string ) { if (condition) { return ( ); } else { return component; } } class SearchPageApp extends React.Component<{}, {}> { static dataStore = dataStore; private left: () => JSX.Element; private right: () => JSX.Element; private header: () => JSX.Element; private footer: () => JSX.Element; private rightRail: () => JSX.Element; constructor() { super(); this.left = () => (
( label + ': ' + value.toLocaleString()} /> ) } /> ( label + ': ' + value.toLocaleString()} /> ) } /> ( label + ': ' + value.toLocaleString()} /> ) } /> ( label + ': ' + value.toLocaleString()} /> ) } />

Options

Export to Excel
); const databindWindowsQuery = (fn: ((Windows: Document[], pagination: PaginationData) => JSX.Element)) => databind( dataStore.windows.onQuery, dataStore.windows, fn); this.right = databindWindowsQuery( (windows: Document[], pagination: PaginationData) => { return ( popup( !!window.gv_inscription && (window.gv_inscription.length > 0) && (window.gv_inscription[0] !== ''), , window.gv_inscription[0] ) } /> ); } ); this.header = databindWindowsQuery( (Windows: Document[], pagination: PaginationData) => (
) ); this.footer = databindWindowsQuery( (Windows: Document[], pagination: PaginationData) => ( ) ); } render() { return ( ); } } export { SearchPageApp };