avatar
Untitled

Guest 138 13th Dec, 2019

MARKUP 1.60 KB
                                           
                         <SelectField
              required
              id='event_type'
              key='event_type'
              menuItems={getEventType}
              errorText={errors.event_type}
              dropdownIcon={<FontIcon>event</FontIcon>}
              value={event_type}
              label={getTranslation('lbl_event_type')}
              position={SelectField.Positions.BELOW}
              error={Boolean(!!errors.event_type && errors.event_type)}
              onChange={value => handleSelectChange(value, 'event_type', getEventType)}
              className={`md-cell md-cell--12 dropdown_menu ${errors.event_type ? 'md-text--error' : ''}`}
            />
            {
              event_type === 'Event Extension' && eventDetailsSelection.map(fields => (
                <SelectField
                  required
                  id={fields.key}
                  key={fields.key}
                  menuItems={fields.data}
                  errorText={errors[fields.key]}
                  dropdownIcon={fields.icon}
                  value={fieldValues[fields.key]}
                  label={getTranslation(fields.label)}
                  position={SelectField.Positions.BELOW}
                  error={Boolean(!!errors[fields.key] && errors[fields.key])}
                  onChange={value => handleSelectChange(value, fields.key, fields.data)}
                  className={`md-cell md-cell--12 dropdown_menu ${errors[fields.key] ? 'md-text--error' : ''}`}
                />
              ))
            }
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data

Comments

Authentication required

You must log in to post a comment.

Log in
    There are no comments yet.