-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs(select): update select docs for modal interface * fix(select): point playground to correct demo
- Loading branch information
1 parent
79c31eb
commit f24a2bd
Showing
13 changed files
with
202 additions
and
10 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
```html | ||
<ion-list> | ||
<ion-item> | ||
<ion-select aria-label="Fruit" interface="modal" placeholder="Select fruit"> | ||
<ion-select-option value="apples">Apples</ion-select-option> | ||
<ion-select-option value="oranges">Oranges</ion-select-option> | ||
<ion-select-option value="bananas">Bananas</ion-select-option> | ||
</ion-select> | ||
</ion-item> | ||
</ion-list> | ||
``` |
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,30 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Select - Modal</title> | ||
<link rel="stylesheet" href="../../../common.css" /> | ||
<script src="../../../common.js"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core@8/dist/ionic/ionic.esm.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ionic/core@8/css/ionic.bundle.css" /> | ||
</head> | ||
|
||
<body> | ||
<ion-app> | ||
<ion-content> | ||
<div class="container"> | ||
<ion-list> | ||
<ion-item> | ||
<ion-select aria-label="Fruit" interface="modal" placeholder="Select fruit"> | ||
<ion-select-option value="apples">Apples</ion-select-option> | ||
<ion-select-option value="oranges">Oranges</ion-select-option> | ||
<ion-select-option value="bananas">Bananas</ion-select-option> | ||
</ion-select> | ||
</ion-item> | ||
</ion-list> | ||
</div> | ||
</ion-content> | ||
</ion-app> | ||
</body> | ||
</html> |
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,13 @@ | ||
import Playground from '@site/src/components/global/Playground'; | ||
|
||
import javascript from './javascript.md'; | ||
import react from './react.md'; | ||
import vue from './vue.md'; | ||
import angular from './angular.md'; | ||
|
||
<Playground | ||
version="8" | ||
size="400px" | ||
code={{ javascript, react, vue, angular }} | ||
src="usage/v8/select/interfaces/modal/demo.html" | ||
/> |
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,11 @@ | ||
```html | ||
<ion-list> | ||
<ion-item> | ||
<ion-select aria-label="Fruit" interface="modal" placeholder="Select fruit"> | ||
<ion-select-option value="apples">Apples</ion-select-option> | ||
<ion-select-option value="oranges">Oranges</ion-select-option> | ||
<ion-select-option value="bananas">Bananas</ion-select-option> | ||
</ion-select> | ||
</ion-item> | ||
</ion-list> | ||
``` |
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,18 @@ | ||
```tsx | ||
import React from 'react'; | ||
import { IonList, IonItem, IonSelect, IonSelectOption } from '@ionic/react'; | ||
function Example() { | ||
return ( | ||
<IonList> | ||
<IonItem> | ||
<IonSelect aria-label="Fruit" interface="modal" placeholder="Select fruit"> | ||
<IonSelectOption value="apples">Apples</IonSelectOption> | ||
<IonSelectOption value="oranges">Oranges</IonSelectOption> | ||
<IonSelectOption value="bananas">Bananas</IonSelectOption> | ||
</IonSelect> | ||
</IonItem> | ||
</IonList> | ||
); | ||
} | ||
export default Example; | ||
``` |
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,22 @@ | ||
```html | ||
<template> | ||
<ion-list> | ||
<ion-item> | ||
<ion-select aria-label="Fruit" interface="modal" placeholder="Select fruit"> | ||
<ion-select-option value="apples">Apples</ion-select-option> | ||
<ion-select-option value="oranges">Oranges</ion-select-option> | ||
<ion-select-option value="bananas">Bananas</ion-select-option> | ||
</ion-select> | ||
</ion-item> | ||
</ion-list> | ||
</template> | ||
|
||
<script> | ||
import { IonList, IonItem, IonSelect, IonSelectOption } from '@ionic/vue'; | ||
import { defineComponent } from 'vue'; | ||
export default defineComponent({ | ||
components: { IonList, IonItem, IonSelect, IonSelectOption }, | ||
}); | ||
</script> | ||
``` |