mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
docs(searchbar): add default values for inputs (#11856)
Complete missing defaults for animated and showCancelButton.
This commit is contained in:
committed by
Brandy Carney
parent
041689b5f5
commit
117003e9e4
@ -72,7 +72,7 @@ export class Searchbar extends BaseInput<string> {
|
|||||||
@Input() cancelButtonText: string = 'Cancel';
|
@Input() cancelButtonText: string = 'Cancel';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @input {boolean} If true, show the cancel button.
|
* @input {boolean} If true, show the cancel button. Default `false`.
|
||||||
*/
|
*/
|
||||||
@Input()
|
@Input()
|
||||||
get showCancelButton(): boolean {
|
get showCancelButton(): boolean {
|
||||||
@ -129,7 +129,7 @@ export class Searchbar extends BaseInput<string> {
|
|||||||
@Input() type: string = 'search';
|
@Input() type: string = 'search';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @input {boolean} If true, enable searchbar animation.
|
* @input {boolean} If true, enable searchbar animation. Default `false`.
|
||||||
*/
|
*/
|
||||||
@Input()
|
@Input()
|
||||||
get animated(): boolean {
|
get animated(): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user