mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
update usage docs
This commit is contained in:
@ -17,6 +17,15 @@ A Searchbar should be used instead of an input to search lists. A clear button i
|
||||
<!-- Default Searchbar -->
|
||||
<ion-searchbar></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button always shown -->
|
||||
<ion-searchbar showCancelButton="always"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button never shown -->
|
||||
<ion-searchbar showCancelButton="never"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button shown on focus -->
|
||||
<ion-searchbar showCancelButton="focus"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with danger color -->
|
||||
<ion-searchbar color="danger"></ion-searchbar>
|
||||
|
||||
@ -30,7 +39,7 @@ A Searchbar should be used instead of an input to search lists. A clear button i
|
||||
<ion-searchbar disabled="true"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with a cancel button and custom cancel button text -->
|
||||
<ion-searchbar showCancelButton cancelButtonText="Custom Cancel"></ion-searchbar>
|
||||
<ion-searchbar showCancelButton="focus" cancelButtonText="Custom Cancel"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with a custom debounce -->
|
||||
<ion-searchbar debounce="500"></ion-searchbar>
|
||||
@ -54,6 +63,15 @@ A Searchbar should be used instead of an input to search lists. A clear button i
|
||||
<!-- Default Searchbar -->
|
||||
<ion-searchbar></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button always shown -->
|
||||
<ion-searchbar show-cancel-button="always"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button never shown -->
|
||||
<ion-searchbar show-cancel-button="never"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button shown on focus -->
|
||||
<ion-searchbar show-cancel-button="focus"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with danger color -->
|
||||
<ion-searchbar color="danger"></ion-searchbar>
|
||||
|
||||
@ -67,7 +85,7 @@ A Searchbar should be used instead of an input to search lists. A clear button i
|
||||
<ion-searchbar disabled="true"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with a cancel button and custom cancel button text -->
|
||||
<ion-searchbar show-cancel-button cancel-button-text="Custom Cancel"></ion-searchbar>
|
||||
<ion-searchbar show-cancel-button="focus" cancel-button-text="Custom Cancel"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with a custom debounce -->
|
||||
<ion-searchbar debounce="500"></ion-searchbar>
|
||||
@ -97,6 +115,15 @@ const Example: React.SFC<{}> = () => (
|
||||
{/*-- Default Searchbar --*/}
|
||||
<IonSearchbar></IonSearchbar>
|
||||
|
||||
{/*-- Searchbar with cancel button always shown --*/}
|
||||
<IonSearchbar showCancelButton="always"></IonSearchbar>
|
||||
|
||||
{/*-- Searchbar with cancel button never shown --*/}
|
||||
<IonSearchbar showCancelButton="never"></IonSearchbar>
|
||||
|
||||
{/*-- Searchbar with cancel button shown on focus --*/}
|
||||
<IonSearchbar showCancelButton="focus"></IonSearchbar>
|
||||
|
||||
{/*-- Searchbar with danger color --*/}
|
||||
<IonSearchbar color="danger"></IonSearchbar>
|
||||
|
||||
@ -110,7 +137,7 @@ const Example: React.SFC<{}> = () => (
|
||||
<IonSearchbar disabled="true"></IonSearchbar>
|
||||
|
||||
{/*-- Searchbar with a cancel button and custom cancel button text --*/}
|
||||
<IonSearchbar showCancelButton cancelButtonText="Custom Cancel"></IonSearchbar>
|
||||
<IonSearchbar showCancelButton="focus" cancelButtonText="Custom Cancel"></IonSearchbar>
|
||||
|
||||
{/*-- Searchbar with a custom debounce --*/}
|
||||
<IonSearchbar debounce={500}></IonSearchbar>
|
||||
@ -139,6 +166,15 @@ export default Example;
|
||||
<!-- Default Searchbar -->
|
||||
<ion-searchbar></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button always shown -->
|
||||
<ion-searchbar showCancelButton="always"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button never shown -->
|
||||
<ion-searchbar showCancelButton="never"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button shown on focus -->
|
||||
<ion-searchbar showCancelButton="focus"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with danger color -->
|
||||
<ion-searchbar color="danger"></ion-searchbar>
|
||||
|
||||
@ -152,7 +188,7 @@ export default Example;
|
||||
<ion-searchbar disabled="true"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with a cancel button and custom cancel button text -->
|
||||
<ion-searchbar showCancelButton cancelButtonText="Custom Cancel"></ion-searchbar>
|
||||
<ion-searchbar showCancelButton="focus" cancelButtonText="Custom Cancel"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with a custom debounce -->
|
||||
<ion-searchbar debounce="500"></ion-searchbar>
|
||||
|
||||
@ -2,6 +2,15 @@
|
||||
<!-- Default Searchbar -->
|
||||
<ion-searchbar></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button always shown -->
|
||||
<ion-searchbar showCancelButton="always"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button never shown -->
|
||||
<ion-searchbar showCancelButton="never"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button shown on focus -->
|
||||
<ion-searchbar showCancelButton="focus"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with danger color -->
|
||||
<ion-searchbar color="danger"></ion-searchbar>
|
||||
|
||||
@ -15,7 +24,7 @@
|
||||
<ion-searchbar disabled="true"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with a cancel button and custom cancel button text -->
|
||||
<ion-searchbar showCancelButton cancelButtonText="Custom Cancel"></ion-searchbar>
|
||||
<ion-searchbar showCancelButton="focus" cancelButtonText="Custom Cancel"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with a custom debounce -->
|
||||
<ion-searchbar debounce="500"></ion-searchbar>
|
||||
|
||||
@ -2,6 +2,15 @@
|
||||
<!-- Default Searchbar -->
|
||||
<ion-searchbar></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button always shown -->
|
||||
<ion-searchbar show-cancel-button="always"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button never shown -->
|
||||
<ion-searchbar show-cancel-button="never"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button shown on focus -->
|
||||
<ion-searchbar show-cancel-button="focus"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with danger color -->
|
||||
<ion-searchbar color="danger"></ion-searchbar>
|
||||
|
||||
@ -15,7 +24,7 @@
|
||||
<ion-searchbar disabled="true"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with a cancel button and custom cancel button text -->
|
||||
<ion-searchbar show-cancel-button cancel-button-text="Custom Cancel"></ion-searchbar>
|
||||
<ion-searchbar show-cancel-button="focus" cancel-button-text="Custom Cancel"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with a custom debounce -->
|
||||
<ion-searchbar debounce="500"></ion-searchbar>
|
||||
|
||||
@ -8,6 +8,15 @@ const Example: React.SFC<{}> = () => (
|
||||
{/*-- Default Searchbar --*/}
|
||||
<IonSearchbar></IonSearchbar>
|
||||
|
||||
{/*-- Searchbar with cancel button always shown --*/}
|
||||
<IonSearchbar showCancelButton="always"></IonSearchbar>
|
||||
|
||||
{/*-- Searchbar with cancel button never shown --*/}
|
||||
<IonSearchbar showCancelButton="never"></IonSearchbar>
|
||||
|
||||
{/*-- Searchbar with cancel button shown on focus --*/}
|
||||
<IonSearchbar showCancelButton="focus"></IonSearchbar>
|
||||
|
||||
{/*-- Searchbar with danger color --*/}
|
||||
<IonSearchbar color="danger"></IonSearchbar>
|
||||
|
||||
@ -21,7 +30,7 @@ const Example: React.SFC<{}> = () => (
|
||||
<IonSearchbar disabled="true"></IonSearchbar>
|
||||
|
||||
{/*-- Searchbar with a cancel button and custom cancel button text --*/}
|
||||
<IonSearchbar showCancelButton cancelButtonText="Custom Cancel"></IonSearchbar>
|
||||
<IonSearchbar showCancelButton="focus" cancelButtonText="Custom Cancel"></IonSearchbar>
|
||||
|
||||
{/*-- Searchbar with a custom debounce --*/}
|
||||
<IonSearchbar debounce={500}></IonSearchbar>
|
||||
|
||||
@ -3,6 +3,15 @@
|
||||
<!-- Default Searchbar -->
|
||||
<ion-searchbar></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button always shown -->
|
||||
<ion-searchbar showCancelButton="always"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button never shown -->
|
||||
<ion-searchbar showCancelButton="never"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with cancel button shown on focus -->
|
||||
<ion-searchbar showCancelButton="focus"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with danger color -->
|
||||
<ion-searchbar color="danger"></ion-searchbar>
|
||||
|
||||
@ -16,7 +25,7 @@
|
||||
<ion-searchbar disabled="true"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with a cancel button and custom cancel button text -->
|
||||
<ion-searchbar showCancelButton cancelButtonText="Custom Cancel"></ion-searchbar>
|
||||
<ion-searchbar showCancelButton="focus" cancelButtonText="Custom Cancel"></ion-searchbar>
|
||||
|
||||
<!-- Searchbar with a custom debounce -->
|
||||
<ion-searchbar debounce="500"></ion-searchbar>
|
||||
|
||||
Reference in New Issue
Block a user