Skip to content

Releases: kjanoudi/joiful-react-forms

0.2.2

13 Sep 15:19

Choose a tag to compare

master(0.2.2): version bump

v0.1.4

08 Jun 13:42

Choose a tag to compare

bug fixes and unit tests

Inline custom components

12 Apr 22:07

Choose a tag to compare

<JoifulInput
    is={CustomElement}
    name="my-input"
/>

Custom JoifulInput components can now be defined in application context + bug fix

09 Apr 23:20

Choose a tag to compare

Example of defining custom JoifulInput types once in application context:

static childContextTypes = {
    joifulReactForms: PropTypes.object
};

getChildContext() {
    return {
        joifulReactForms: {
            JoifulInput: {
                types: {
                    text: ...,
                    select: ...,
                    dateTime: ...,
                    ...
                }
            }
        }
    }
}

Note: you can override at an instance level using the elementType prop on <JoifulForm>

Documentation

06 Apr 18:27

Choose a tag to compare

Merge pull request #10 from kjanoudi/1

Readme updates + version bump

README & Shiny new top-level API

06 Apr 17:40

Choose a tag to compare

  • Top Level API
    • { JoifulForm, JoifulInput }
  • JoifulForm
    • customInputElementTypes replaced with elementTypes
    • Removed the 'Element' part of the api for this property to this elementTypes={ text, select, textarea, myCustomInput }
    • Component declaration for the elementTypes was once a function. It expects a react component now, so overriding is intuitive.
  • JoifulInput
    • fieldName replaced with name
    • inputProps props have been flattened
    • is is now shorthand for elementType
  • Eslint