Class

EditStuff

ui/pages.EditStuff()

Renders the Page for editing a single document.

Constructor

# new EditStuff()

View Source ui/pages/EditStuff.jsx, line 15

Members

# static propTypes

Require the presence of a Stuff document in the props object. Uniforms adds 'model' to the props, which we use.

View Source ui/pages/EditStuff.jsx, line 63

Methods

# render()

If the subscription(s) have been received, render the page, otherwise show a loading icon.

View Source ui/pages/EditStuff.jsx, line 36

# renderPage()

Render the form. Use Uniforms: https://github.com/vazco/uniforms

View Source ui/pages/EditStuff.jsx, line 41

# submit(data)

On successful submit, insert the data.

Parameters:
Name Type Description
data Object

the result from the form.

View Source ui/pages/EditStuff.jsx, line 21