Ticket #938 (closed enhancement: fixed)

Opened 9 years ago

Last modified 9 years ago

Definir uma regex para campos especificos da interface

Reported by: raphael.costa Owned by: raphael.costa
Priority: major Milestone: terrama2-4.0.0-beta1
Component: gui-web Version: 4.0
Keywords: Cc:
Parent Tickets: Platform: Windows

Description

Definir uma regex para os campos da interface para o usuário não preencher caracteres especiais para as máscaras dos dados, etc.

Para adicionar, basta ir no semantics.json e em cada seção do schema de cada campo, definir uma chave "pattern" com a regex.

"schema": {
  "properties": {
    "folder": {
      "type": "string",
      "title": "Folder",
      "pattern": "MyRegex"
    },
    ...
}

Links:
SchemaForm Docs
Regex Online

Subtickets

Change History

comment:2 Changed 9 years ago by raphael.costa

  • Status changed from new to accepted

comment:3 Changed 9 years ago by raphael.costa

Implementado no PR 781

comment:4 Changed 9 years ago by raphael.costa

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.