Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added custom ListField icons in bootstrap3. #115

Merged
merged 1 commit into from
Oct 19, 2016

Conversation

todda00
Copy link
Contributor

@todda00 todda00 commented Oct 19, 2016

Add ability to include custom add / remove icons for ListFields.

This can be implemented in either AutoField or by using ListField.

Example AutoField:

<AutoField
  name="athletics.otherSports"
  addIcon={(<i className="fa fa-add-circle" />)}
  removeIcon={(<i className="fa fa-close-circle" />)}
/>

Example ListField:

<ListField
  name="athletics.otherSports"
  addIcon={(<i className="fa fa-add-circle" />)}
  removeIcon={(<i className="fa fa-close-circle" />)}
>
  <ListItemField name="$">
    <NestField>
      <TextField name="sportName" className="col-md-6" />
      <TextField name="yearsParticipated" className="col-md-6" />
    </NestField>
  </ListItemField>
</ListField>

@radekmie radekmie added the Type: Feature New features and feature requests label Oct 19, 2016
Copy link
Contributor

@radekmie radekmie left a comment

Choose a reason for hiding this comment

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

Thank you!

@radekmie radekmie merged commit 965a862 into vazco:master Oct 19, 2016
@radekmie radekmie changed the title custom addIcon and removeIcon for ListFields for bootstrap-3 Added custom ListField icons in bootstrap3. Oct 19, 2016
@Monteth Monteth added this to Closed in Open Source (migrated) Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New features and feature requests
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants