Skip to content

Commit

Permalink
release of v10.25 (#3412)
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker authored Mar 25, 2024
2 parents f456e54 + 5be2000 commit c9711c4
Show file tree
Hide file tree
Showing 254 changed files with 1,566 additions and 638 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const AccordionGroupExample = () => (
<Accordion.Group expanded allow_close_all>
<Accordion expanded={false}>
<Accordion.Header>Accordion title</Accordion.Header>
<Accordion.Content top="x-large">
<Accordion.Content top>
<P>
Sociis sapien sociosqu vel sollicitudin accumsan laoreet
gravida himenaeos nostra mollis volutpat bibendum convallis cum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@
showTabs: true
---

import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
import { AutocompleteEvents } from '@dnb/eufemia/src/components/autocomplete/AutocompleteDocs'
import AutocompleteMethods from 'Docs/uilib/components/autocomplete/methods'

## Events

| Events | Description |
| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `on_type` | _(optional)_ will be called for every key change the users makes. Returns an object with the input `value` inside `{ value, event, attributes }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data). |
| `on_focus` | _(optional)_ will be called on user generated focus action. Returns an object with the input `value` inside `{ value, event, attributes }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data). |
| `on_blur` | _(optional)_ will be called on user generated blur action. Returns an object with the input `value` inside `{ value, event, attributes }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data). |
| `on_change` | _(optional)_ will be called on state changes made by the user. Returns an object with the new selected `data` item `{ data, event, attributes, value }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data). |
| `on_select` | _(optional)_ will be called once the users selects an item by a click or keyboard navigation. Returns an object with the new selected `data` item `{ data, event, attributes, value, active_item }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data). The **active_item** property is the currently selected item by keyboard navigation |
| `on_show` | _(optional)_ will be called once the user presses the autocomplete. Returns the data item `{ data, attributes }`. |
| `on_hide` | _(optional)_ will be called once the user presses the autocomplete again, or clicks somewhere else. Returns the data item `{ data, attributes }`. |
<PropertiesTable props={AutocompleteEvents} />

### The `on_change` vs `on_select` difference

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ and if you need to decouple the searchable content from what's displayed, then y

Numbers are often different than a word filter. You can use `search_numbers={true}` to enable a number specialized filtering. See example in the demos.

Now the user could search for e.g. bank account numbers by just entering `201`, even if you format it like `2000 12 34567` (e.g. use format(20001234567, \{ ban: true \}) from /components/number-format/NumberUtils)
Now the user could search for e.g. bank account numbers by just entering `201`, even if you format it like `2000 12 34567` (e.g. use `format(20001234567, { ban: true })` from `@dnb/eufemia/components/number-format/NumberUtils`).

### Screen reader support

Expand Down
Loading

0 comments on commit c9711c4

Please sign in to comment.