mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs: fix doc tags
This commit is contained in:
@@ -48,23 +48,21 @@ class MediaSwitch {
|
||||
|
||||
/**
|
||||
* @name ionSwitch
|
||||
* @classdesc
|
||||
* @description
|
||||
* A switch technically is the same thing as an HTML checkbox input, except it looks different and is easier to use on a touch device. Ionic prefers to wrap the checkbox input with the <label> in order to make the entire toggle easy to tap or drag.
|
||||
*
|
||||
* Toggles can also have colors assigned to them, by adding the `toggle-assertive` attribute to assign the assertive color.
|
||||
*
|
||||
* See the [Angular 2 Docs](https://angular.io/docs/js/latest/api/forms/) for more info on forms and input.
|
||||
*
|
||||
* @example
|
||||
* @usage
|
||||
* ```html
|
||||
* // Create a single switch
|
||||
* <ion-switch checked="true">
|
||||
* Pineapple
|
||||
* </ion-switch>
|
||||
* ````
|
||||
*
|
||||
* @example
|
||||
* Create a list of switch components:
|
||||
* ```html
|
||||
* // Create a list of switches:
|
||||
* <ion-list>
|
||||
*
|
||||
* <ion-switch checked="true">
|
||||
|
||||
Reference in New Issue
Block a user