More actions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{CGscriptClass_Template | {{CGscriptClass_Template | ||
|Name=QuestionnaireLayout | |Name=<nowiki>QuestionnaireLayout</nowiki> | ||
|Description=A layout for a questionnaire | |Description=<nowiki>A layout for a questionnaire.</nowiki> | ||
|Constructors= | |InheritsFrom=object|Constructors= | ||
{{CGscriptConstructors_Template|Parameters= | {{CGscriptConstructors_Template|Parameters= | ||
{{CGscriptParameters_Template|Type= | {{CGscriptParameters_Template|Type=int|Name=<nowiki>resourceId</nowiki>|Description=<nowiki>ResourceId of existing QuestionnaireLayout.</nowiki>}} | ||
|Description=Fetch existing QuestionnaireLayout}} | |Description=<nowiki>Fetch existing QuestionnaireLayout.</nowiki>}} | ||
{{CGscriptConstructors_Template|Parameters= | {{CGscriptConstructors_Template|Parameters= | ||
{{CGscriptParameters_Template|Type=string|Name=name|Description=Resource name|Comma=,}}{{CGscriptParameters_Template|Type= | {{CGscriptParameters_Template|Type=string|Name=<nowiki>name</nowiki>|Description=<nowiki>Resource name.</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=int|Name=<nowiki>parentResourceId</nowiki>|Description=<nowiki>Parent resource.</nowiki>}} | ||
|Description=Create new QuestionnaireLayout}} | |Description=<nowiki>Create new QuestionnaireLayout.</nowiki>}} | ||
|Methods= | |||
{{CGscriptMethods_Template|ReturnType=Empty|Name=<nowiki>Save</nowiki>|Description=<nowiki>Save the QuestionnaireLayout</nowiki>}} | |||
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Inherited=object|Description=<nowiki>The string representation of the object.</nowiki>}} | |||
|Properties= | |Properties= | ||
{{CGscriptProperties_Template|ReturnType= | {{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Css</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>The Css of the QuestionnaireLayout</nowiki>}} | ||
{{CGscriptProperties_Template|ReturnType=string|Name= | {{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Description</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Description of the QuestionnaireLayout</nowiki>}} | ||
{{CGscriptProperties_Template|ReturnType=string|Name= | {{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Html</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>The Html of the QuestionnaireLayout</nowiki>}} | ||
{{CGscriptProperties_Template|ReturnType=string|Name= | {{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}} | ||
{{CGscriptProperties_Template|ReturnType= | {{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>ResourceId</nowiki>|HasGetter=1|Description=<nowiki>The Id of the Resource</nowiki>}} | ||
{{CGscriptProperties_Template|ReturnType=string|Name= | {{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ResourceName</nowiki>|HasGetter=1|Description=<nowiki>The name of the Resource</nowiki>}} | ||
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=TypeInformation|HasGetter=1|Description=Get information about this class | {{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Inherited=object|Description=<nowiki>Get information about this class.</nowiki>}} | ||
}} | }} | ||
Latest revision as of 05:10, 2 July 2020
QuestionnaireLayout
A layout for a questionnaire.
Parent class
Inherits from object
Constructors
- (int resourceId "ResourceId of existing QuestionnaireLayout.") - Fetch existing QuestionnaireLayout.
- (string name "Resource name.", int parentResourceId "Parent resource.") - Create new QuestionnaireLayout.
Methods
- Empty Save() - Save the QuestionnaireLayout
- (From object) string ToString() - The string representation of the object.
Properties
- string Css { get; set; } - The Css of the QuestionnaireLayout
- string Description { get; set; } - Description of the QuestionnaireLayout
- string Html { get; set; } - The Html of the QuestionnaireLayout
- string ObjectTypeName { get; } - The name of the type of object.
- int ResourceId { get; } - The Id of the Resource
- string ResourceName { get; } - The name of the Resource
- (From object) TypeInformation TypeInformation { get; } - Get information about this class.
Examples
number parentId = 1234;
QuestionnaireLayout l = new QuestionnaireLayout("Test layout", parentID);
l.Html = "<div id='questioncontent'>[[QUESTION]]</div><div id='navigationbar'>[[NAVIGATION]]</div>";
l.Css = ".cg-ui-question > .cg-ui-text {font-weight: bold;}";
l.Save();
l.ResourceId;