Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ComboBox - @deephaven/components #2065

Closed
bmingles opened this issue Jun 10, 2024 · 0 comments · Fixed by #2067
Closed

ComboBox - @deephaven/components #2065

bmingles opened this issue Jun 10, 2024 · 0 comments · Fixed by #2067
Assignees

Comments

@bmingles
Copy link
Contributor

bmingles commented Jun 10, 2024

@deephaven/components ComboBox component to support Deephaven UI

@bmingles bmingles self-assigned this Jun 10, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 10, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 10, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 10, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 11, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit to bmingles/web-client-ui that referenced this issue Jun 12, 2024
bmingles added a commit that referenced this issue Jun 12, 2024
* New `ComboBox` component in @deephaven/components
* Split out some shared logic from `Picker` since `ComboBox` is
basically a subclass
* Deleted old `ComboBox` component and replaced usage (condition column
+ row formatting. Also tested to make sure it still works as before)
* Updated Styleguide

resolves #2065

BREAKING CHANGE: ComboBox component has been replaced. 
To migrate to new version:
- Passing children is used instead of `options` prop to define dropdown
items. For cases where option value and display are the same, passing an
array of values as `children` will work. For cases where value and
display differ, `Item` elements must be passed as children. e.g. `<Item
key={value}>{display}</Item>`
e.g.
```typescript
// values will be used for display + value
const items = useMemo(
  () => ['Aaa', 'Bbb', 'Ccc'], 
  []
)
<ComboBox>{items}</ComboBox>
```
```typescript
<ComboBox>
  <Item key="aaa">Aaa</Item>
  <Item key="bbb">Bbb</Item>
  <Item key="ccc">Ccc</Item>
</ComboBox>
```
- The `spellcheck=false` prop is no longer supported or needed
- `searchPlaceholder` and `inputPlaceholder` props are no longer
supported and should be omitted. There is an optional `description` prop
for cases where a descriptive label is desired. There is also a `label`
prop for the primary component label.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant