djangoFormFields: Create a json string for django form fields

Description Usage Arguments Value Examples

View source: R/django.r

Description

Create the form fields to be used for R plugins in AmCAT.

Usage

1

Arguments

...

the field objects, created using the functions: BooleanField, IntegerField, etc. Note that the field objects have to be named!

Value

a json string

Examples

1
2
djangoFormFields(field1=BooleanField(initial=F, required=F),
                 field2=IntegerField(initial=10, required=T))

amcat/amcat-r documentation built on Dec. 26, 2021, 3:12 a.m.