Skip to content

Can we have any way to use on our specific component? #180

@Hacivat

Description

@Hacivat

Like this;

  <ReactSelect
                                className="custom-select-sm mt-1 mb-4"
                                name="studentGender"
                                placeholder="Lütfen seçiniz..."
                                options={[
                                  { value: 'male', label: 'Erkek' },
                                  { value: 'female', label: 'Kadın' }
                                ]}
                                defaultInputValue={data.gender}
                                onChange={option => {
                                  this.setTeacherInfo('gender', option.value)
                                  this.validate(option) //or something
                                }} />
                            

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions