Secret Field

Ein Geheimnis wie einen API-Schlüssel eingeben, speichern und löschen, mit Status gesetzt / nicht gesetzt.

Verfügbar für
  • Angular: verfügbar
  • Vue: verfügbar
  • React: verfügbar
  • React Native: noch nicht verfügbar

Verwendung

API key Not set

Stored in the system keychain and never logged.

Workspace token Not set

Import

ts
import {
  SoneSecretFieldComponent,
} from "@surface-one/angular/secret-field";

API-Referenz

SoneSecretFieldComponentKomponente

Selektor
sone-secret-field
Inputs
NameTyp Standard
hasKeyboolean | nullnull
busybooleanfalse
errorstring | nullnull
label—$localize`Status`
placeholderstring""
ariaLabelstring | nullnull
helpstring | nullnull
setLabel—$localize`Key set ✓`
unsetLabel—$localize`Not set`
saveLabel—$localize`Save key`
autocompletestring"off"
clearablebooleanfalse
Outputs
NameTyp
save

The parent must not log or store this outside the Keychain.

string
clearvoid