Skip to content

Conversation

@leonelv
Copy link

@leonelv leonelv commented Sep 10, 2024

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@leonelv
Copy link
Author

leonelv commented Sep 10, 2024

just a proof on concept for an use case that i need to cover, will complete the pr info soon

@leonelv leonelv marked this pull request as draft September 10, 2024 16:53
Comment on lines 200 to 201
defaultValue?: string
options?: IDropdownOption[]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

casted from example on https://www.verygoodsecurity.com/docs/vgs-collect/js/integration

form.field('#space-for-my-field', {
  type: 'dropdown',
  name: 'car.manufacturer',
  placeholder:"Car manufacturer",
  options: [
      {value: 'volvo', text: 'Volvo'},
      {value: 'saab', text: 'Saab'},
      {value: 'opel', text: 'Opel'},
      {value: 'audi', text: 'Audi'}
  ],
  defaultValue: "volvo",
  validations: ['required']
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant