Delen via


formatUserInput

Retourneert het opmaken van gebruikersinvoer op basis van het doorgegeven kenmerktype. Als het type niet wordt herkend, wordt de invoer zelf geretourneerd.

Syntaxis

context.formatting.formatUserInput(input, controlAttributes);

Beschikbaar voor

Modelgestuurde en canvas-apps

Parameterwaarden

Parameternaam Typologie Verplicht Description
invoer unknown Yes Gebruikersinvoer.
gedrag ControlAttributes Yes controlAttributes wordt gebruikt door de formatter.

Retourwaarde

Typ: string

Example

const controlAttributes = {
  Type: "double",
  Precision: 2,
  PrecisionSource: 0,
  Behavior: null,
  OptionSet: null,
  Format: null,
} as ControlAttributes;

context.formatter.formatUserInput("22", controlAttributes);

Opmaak
Api-naslaginformatie over het Power Apps-onderdeelframework
Overzicht van power Apps-onderdelenframework