Skip to content

Commit 741f563

Browse files
docs(picker-legacy): remove legacy component (#4468)
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
1 parent 1eb78c2 commit 741f563

32 files changed

Lines changed: 7 additions & 1536 deletions

docs/api/picker-legacy.md

Lines changed: 0 additions & 151 deletions
This file was deleted.

docs/developing/config.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ Below are the config options that Ionic uses.
193193
| `modalLeave` | `AnimationBuilder` | Provides a custom leave animation for all `ion-modal`, overriding the default "animation". |
194194
| `mode` | `Mode` | The mode determines which platform styles to use for the whole application. |
195195
| `navAnimation` | `AnimationBuilder` | Overrides the default "animation" of all `ion-nav` and `ion-router-outlet` across the whole application. |
196-
| `pickerEnter` | `AnimationBuilder` | Provides a custom enter animation for all `ion-picker`, overriding the default "animation". |
197-
| `pickerLeave` | `AnimationBuilder` | Provides a custom leave animation for all `ion-picker`, overriding the default "animation". |
198196
| `platform` | [`PlatformConfig`](/docs/angular/platform#customizing-platform-detection-methods) | Overrides the default platform detection methods. |
199197
| `popoverEnter` | `AnimationBuilder` | Provides a custom enter animation for all `ion-popover`, overriding the default "animation". |
200198
| `popoverLeave` | `AnimationBuilder` | Provides a custom leave animation for all `ion-popover`, overriding the default "animation". |

docs/updating/9-0.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,12 @@ npm install @ionic/vue@latest @ionic/vue-router@latest
258258
npm install @ionic/core@latest
259259
```
260260

261+
### Legacy Picker
262+
263+
1. Remove any usages of the `ion-picker-legacy` and `ion-picker-legacy-column` components. These components have been removed in Ionic 9. The recommended path forward is to use `ion-picker` inside a modal. Review the [Picker in Modal documentation](../api/picker.md#picker-in-modal) for more information.
264+
2. Remove any usages of `pickerController`. If using React, remove any usages of the `useIonPicker` hook. These controller-based APIs have been removed in Ionic 9. Use the [Picker](../api/picker.md) component instead.
265+
3. Remove any usages of the `PickerOptions`, `PickerButton`, `PickerColumn`, and `PickerColumnOption` type exports. These types were associated with the legacy picker and have been removed in Ionic 9.
266+
261267
## Need Help Upgrading?
262268

263269
Be sure to look at the [Ionic 9 Breaking Changes Guide](https://github.com/ionic-team/ionic-framework/blob/main/BREAKING.md#version-9x) for the complete list of breaking changes. This upgrade guide only covers changes that require action from developers.

sidebars.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -326,14 +326,7 @@ module.exports = {
326326
type: 'category',
327327
label: 'Date & Time Pickers',
328328
collapsed: false,
329-
items: [
330-
'api/datetime',
331-
'api/datetime-button',
332-
'api/picker',
333-
'api/picker-column',
334-
'api/picker-column-option',
335-
'api/picker-legacy',
336-
],
329+
items: ['api/datetime', 'api/datetime-button', 'api/picker', 'api/picker-column', 'api/picker-column-option'],
337330
},
338331
{
339332
type: 'category',

static/usage/v9/picker-legacy/controller/angular/example_component_html.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

static/usage/v9/picker-legacy/controller/angular/example_component_ts.md

Lines changed: 0 additions & 56 deletions
This file was deleted.

static/usage/v9/picker-legacy/controller/demo.html

Lines changed: 0 additions & 68 deletions
This file was deleted.

static/usage/v9/picker-legacy/controller/index.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

static/usage/v9/picker-legacy/controller/javascript.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)