-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into enhancements/treemap
- Loading branch information
Showing
12 changed files
with
438 additions
and
102 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
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
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
34 changes: 34 additions & 0 deletions
34
...explorer/visualizations/config_panel/config_panes/config_controls/config_number_input.tsx
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiFieldNumber, EuiTitle, EuiSpacer, htmlIdGenerator } from '@elastic/eui'; | ||
|
||
interface InputFieldProps { | ||
title: string; | ||
numValue: number; | ||
handleInputChange: (value?: any) => void; | ||
} | ||
|
||
export const InputFieldItem: React.FC<InputFieldProps> = ({ | ||
title, | ||
numValue, | ||
handleInputChange, | ||
}) => ( | ||
<> | ||
<EuiTitle size="xxs"> | ||
<h3>{title}</h3> | ||
</EuiTitle> | ||
<EuiSpacer size="s" /> | ||
<EuiFieldNumber | ||
id={htmlIdGenerator('input-number')()} | ||
fullWidth | ||
placeholder="auto" | ||
value={numValue} | ||
onChange={(e) => handleInputChange(e.target.value)} | ||
data-test-subj="valueFieldNumber" | ||
/> | ||
</> | ||
); |
Oops, something went wrong.