Class: AtomicAdmin::Schema::ApplicationInstanceXmlConfigSchema
- Inherits:
-
ApplicationInstanceSchema
- Object
- ApplicationInstanceSchema
- AtomicAdmin::Schema::ApplicationInstanceXmlConfigSchema
- Defined in:
- lib/atomic_admin/schema/application_instance_xml_config_schema.rb
Instance Attribute Summary
Attributes inherited from ApplicationInstanceSchema
Instance Method Summary collapse
Methods inherited from ApplicationInstanceSchema
Constructor Details
This class inherits a constructor from AtomicAdmin::Schema::ApplicationInstanceSchema
Instance Method Details
#schema ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/atomic_admin/schema/application_instance_xml_config_schema.rb', line 3 def schema { type: "object", properties: { lti_key: { type: "string", }, lti_secret: { type: "string", }, lti_config_xml: { type: "string", }, } } end |
#uischema ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/atomic_admin/schema/application_instance_xml_config_schema.rb', line 20 def uischema { type: "Group", label: "LTI 1.1", elements: [ { type: "VerticalLayout", elements: [ { type: "Control", scope: "#/properties/lti_key", options: { props: { label: "LTI Key", isReadOnly: true, }, }, }, { type: "Control", scope: "#/properties/lti_secret", options: { props: { label: "LTI Secret", }, }, }, { type: "Control", scope: "#/properties/lti_config_xml", options: { format: "textarea", props: { label: "LTI Config XML", isReadOnly: true, size: "full", rows: 20, }, }, }, ], }, ], } end |