Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

212
Visualizações
Dropdown control on Backstage scaffolder (or radio buttons)

I'm creating a template in the Backstage scaffolder and I need a way to present to the user an option selection UI, it can be a dropdown select or a group of radio buttons, something like that:

Name of your project ______
Include foo [ ]
CSS Processor |v|
 - None
 - SASS
 - Stylus

I couldn't find how to do the select part. The only dropdown that exists in the documentation is the Repository Picker, but it is a custom control, besides that, I could only find examples for type: string and type: boolean. Actually, there's something about type: array, but the example seems incomplete (or this type is not intended for what I'm looking for)

Is it possible to do without a custom component?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Ultimately I've managed to solve this by doing

  parameters:
    - title: My scaffolder
      properties:
        ...
        includeRequester:
          title: Include an API requester?
          type: string
          description: Should this module include an API requester? (REST or GraphQL)
          default: none
          enum:
            - none
            - rest
            - graphql

However, I couldn't figure out how to define labels for the options. Ideally, I had in mind something like

none: Don't include a requester
rest: Include a REST requester
graphql: Include a GraphQL requester

but it's OK, despite not having labels, it's working as expected.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda