layout: default title: SwitchInput parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Widgets

SwitchInput Class

The SwitchInput class defines the desired user interface for a binary switch or toggle. This should be used when selecting between two options.
ArcGIS Maps SDK for JavaScript

public class SwitchInput : dymaptic.GeoBlazor.Core.Components.Widgets.FormInput

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 FormInput 🡒 SwitchInput

Remarks

Coded-value domains are required when using this input type.

Properties

SwitchInput.OffValue Property

Coded value used when the switch state is turned off. Values that are parseable as numbers will be converted.

public string? OffValue { get; set; }

Property Value

System.String

SwitchInput.OnValue Property

Coded value used when the switch state is turned on. Values that are parseable as numbers will be converted.

public string? OnValue { get; set; }

Property Value

System.String

SwitchInput.Type Property

The type of form element input.

public override string Type { get; }

Property Value

System.String