UNPKG

sp-formgen-react

Version:

Formula generator for SharePoint with JSON for react. UI Fabric controls are used for rendering

70 lines 2.11 kB
{ "id": "testform", "theme": "red", "title": "Test EN", "title_trans": { "de": "Test DE", "fr": "Test FR", "it": "Test IT" }, "template": "Das ist ein title [testform.UserName] mit Test", "template_trans": { "de" : "Das ist ein title [testform.UserName] mit Test DE" }, "dataprovider_config_name": "spconfig", "rows": [{ "columns": [{ "label_with": 4, "controls": [{ "id": "UserName", "title": "User Namen", "dataprovider_value_configkey": "SPUserProfileProvider.reports.LastName", "control_type": [ "Textbox" ], "value": "Test A" },{ "id": "uploadForm", "title": "Dateien", "dataprovider_list_configkeys": [ "SPListProvider.upload" ], "control_type": [ "FileUpload" ], "label_position": [ "Top"], "config": { "ShowFiles": true, "DropZoneText": "Drop here", "DropedFilesText": "Dateien" } },{ "id": "choiceGroup", "title": "ChoiceGroup", "dataprovider_list_configkeys": [ "SPListProvider.onelevel" ], "control_type": [ "ChoiceGroup" ], "label_position": [ "Top"] },{ "id": "comboBox", "title": "ComboBox", "dataprovider_list_configkeys": [ "SPListProvider.onelevel" ], "control_type": [ "ComboBox" ], "label_position": [ "Top"] },{ "id": "dropdown", "title": "DropDown", "dataprovider_list_configkeys": [ "SPUserProfileProvider.DisplayName" ], "control_type": [ "DropDown" ], "label_position": [ "Top"] },{ "id": "cascading", "title": "Cascader", "dataprovider_list_configkeys": [ "SPListProvider.unittest" ], "control_type": [ "CascadingDropDown" ], "label_position": [ "Top"] },{ "id": "pepople", "control_type": [ "PeoplePicker" ], "title": "PeoplePicker", "config": { "allowMultiple": true }, "label_position": [ "Top" ] } ]} ]} ]}