Skip to content

feat: Optional I/O or On/Off label for ion-toggle #20524

Closed
@wilk-polarny

Description

@wilk-polarny

Ionic version:
[x] 4.x

Describe the Feature Request
I would like to have optional labels on <ion-toggle> elements - in iOS, you are still able to enable labels within the accessibility settings. We would like to honor these settings and to have a way to enable labels for the respective platforms (iOS/Android).

Describe Preferred Solution
How? An optional parameter/directive would be nice.

It should look like this:
image
(Source: https://osxdaily.com/2014/04/15/ios-settings-switch-on-off-labels/)

As far as I know, there are also Android equivalents with on/off.

Describe Alternatives
I considered a DIY solution, but I'm not currently not sure how to achieve that effect without having to fork the Ionic project.

Related Code

<ion-toggle label="false"></ion-toggle>
<ion-toggle label="true"></ion-toggle>

Additional Context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions