Class: GlossaryForm

GlossaryForm()

This component gives the superuser the possibility to create, edit and delete entries for the glossary

Constructor

new GlossaryForm()

Source:

Methods

componentDidMount()

Function will fire when the component was mounted, it checks if an ID was given via props and if a superuser is identified / authorized

Source:

componentWillReceiveProps()

This function fires if the props are updated (e.g. neccessary for delayed ajax request response)

Source:

removeGlossary()

Actually remove the glossary entry that is identified via its ID

Source:

submitForm()

Sub mit the form to edit an existing or create a new entry for the glossary It uses the addGlossary action via props (GlossaryFormContainer)

Source:

toggleDelete()

Toggle the delete confirm button via the according state value

Source:

updateField(event)

Update the form state based on the change in the inputs

Parameters:
Name Type Description
event integer

the change event

Source:

updateProps(nextProps)

Maps new props to the local state of the component

Parameters:
Name Type Description
nextProps object

the object containing the new props that will be mapped

Source: