GithubHelp home page GithubHelp logo

danielstorey / adapt-questioncomponent Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 6.0 20 KB

A skeleton component to help developers create question components

License: GNU General Public License v3.0

JavaScript 92.30% HTML 7.70%

adapt-questioncomponent's Introduction

adapt-questionComponent

A basic component skeleton to help developers create components. All components should have a readme that contains the following:

  • Title and Description
  • Installation
  • Usage
  • Settings overview
  • Limitations
  • Browser spec

Further details on developing components can be found on the wiki here: Developing-plugins.

Installation

Please describe the steps required to install your plug-in. You should also detail any dependencies that are not part of the package.json file.

Usage

Some details of how the plug-in might be used should be given here.

Settings overview

Each component should come with an example.json which contains an example of the data structure needed for this component to work. This enables developers to copy this over without the need for an editor.

Developers should give some description for data expected for their component and what the setting does. The example.json file for a basic component would contain at least the following:

{
    "_id":"c-05",
    "_parentId":"b-05",
    "_type":"component",
    "_component":"adapt-my-component",
    "_classes":"",
    "_layout":"left",
    "title":"My Component",
    "displayTitle":"My Component",
    "body":"",
    "instruction":""
}

A description of the core settings can be found at: Core model attributes

Data description

All attributes for your component should be described here. A description for core attributes can be found here: Core model attributes

Each component should also contain a properties.schema file. This is a JSON schema of example.json. This file is needed for the component to work with the authoring tool. It describes what fields are needed to edit the component.

Limitations

Please detail any limitation of your component.

Browser spec

If you have detailed browser spec you should detail them here.

adapt-questioncomponent's People

Contributors

danielstorey avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.