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

Figure out how to populate settings form with an array with multiple defaults. #56

Closed
samussiah opened this issue Apr 23, 2018 · 1 comment

Comments

@samussiah
Copy link
Contributor

@tbaraldi noticed this issue with the safety-outlier-explorer library, whose details setting is an array that defines multiple defaults:

    ,"details":
        {"type": "array"
        ,"title": "Participant details"
        ,"description": "an array of ID-level variables and associated metadata"
        ,"defaultObject":
            [
                { "value_col": "AGE" , "label": "Age"  },
                { "value_col": "SEX" , "label": "Sex"  },
                { "value_col": "RACE", "label": "Race" }
            ]
        ,"items":
            {"type": "object"
            ,"properties":
                {"value_col":
                    {"type": "string"
                    ,"title": "Variable name"
                    ,"default": "AGE"
                    }
                ,"label":
                    {"type": "string"
                    ,"title": "Variable label"
                    ,"default": "Age"
                    }
                }
            }
        }
@samussiah
Copy link
Contributor Author

Try out alpaca.js: http://www.alpacajs.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant