forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert EuiTableOfRecords to simpler table component in scripted fiel…
…ds table. (elastic#16901) * Convert EuiTableOfRecords to EuiBasicTable in scripted fields table. * Convert from EuiBasicTable to EuiInMemoryTable. * Fix bug with filtering and show 'no items' message when the filter doens't match any scripted fields.
- Loading branch information
Showing
13 changed files
with
314 additions
and
564 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 40 additions & 16 deletions
56
...ttern/scripted_fields_table/components/header/__tests__/__snapshots__/header.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,45 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Header should render normally 1`] = ` | ||
<div> | ||
<EuiTitle | ||
size="s" | ||
<EuiFlexGroup | ||
alignItems="center" | ||
component="div" | ||
gutterSize="l" | ||
justifyContent="flexStart" | ||
responsive={true} | ||
wrap={false} | ||
> | ||
<EuiFlexItem | ||
component="div" | ||
grow={true} | ||
> | ||
<h3> | ||
Scripted fields | ||
</h3> | ||
</EuiTitle> | ||
<EuiText> | ||
<p> | ||
You can use scripted fields in visualizations and display them in your documents. However, you cannot search scripted fields. | ||
</p> | ||
</EuiText> | ||
<EuiSpacer | ||
size="s" | ||
/> | ||
</div> | ||
<EuiTitle | ||
size="s" | ||
> | ||
<h3> | ||
Scripted fields | ||
</h3> | ||
</EuiTitle> | ||
<EuiText> | ||
<p> | ||
You can use scripted fields in visualizations and display them in your documents. However, you cannot search scripted fields. | ||
</p> | ||
</EuiText> | ||
</EuiFlexItem> | ||
<EuiFlexItem | ||
component="div" | ||
grow={false} | ||
> | ||
<EuiButton | ||
color="primary" | ||
data-test-subj="addScriptedFieldLink" | ||
fill={false} | ||
href="" | ||
iconSide="left" | ||
type="button" | ||
> | ||
Add scripted field | ||
</EuiButton> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.