Secret Field

Wprowadzanie, zapisywanie i czyszczenie sekretu, np. klucza API, ze statusem ustawiony / nieustawiony.

Dostępny w
  • Angular: dostępny
  • Vue: dostępny
  • React: dostępny
  • React Native: jeszcze niedostępny

Użycie

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";

Dokumentacja API

SoneSecretFieldComponentKomponent

Selektor
sone-secret-field
Wejścia
NazwaTyp Domyślnie
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
Wyjścia
NazwaTyp
save

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

string
clearvoid