GithubHelp home page GithubHelp logo

markchipman / adapt-dragndrop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danielstorey/adapt-dragndrop

0.0 2.0 0.0 72 KB

A Drag and Drop Question Component for Adapt Learning

License: GNU General Public License v3.0

JavaScript 74.70% CSS 18.47% HTML 6.83%

adapt-dragndrop's Introduction

adapt-dragndrop

Drag and Drop Question Component

**Drag and Drop** is a *presentation component* Created by Dan storey.

A learner must drag the correct answers to the relevant questions. This plug in supports dummy answers and multiple correct answers for each question. the order the answers appear in is random each time the user loads the page so there is no way of telling the dummy answers appart from the correct ones. Configuration is incredibly simple as you will see from the example.

Click here for an interactive demo

##Installation

Settings Overview

The attributes listed below are used in components.json to configure Drag and Drop, and are properly formatted as JSON in example.json.

Attributes

core model attributes: These are inherited by every Adapt component. Read more.

_component (string): This value must be: dragndrop. (One word.)

_classes (string): CSS class name to be applied to Drag and Drop containing div. The class must be predefined in one of the Less files. Separate multiple classes with a space.

_layout (string): This defines the horizontal position of the component in the block. Acceptable values are full, left or right.

instruction (string): This optional text appears above the component. It is frequently used to guide the learner’s interaction with the component.

title (string): This is the title text for the Drag and Drop component.

body (string): This is the main text for the Drag and Drop component.

_items (string): Each item represents a question for this component and contains values for _text and accepted.

text (string): The text to be displayed for the question.

accepted (mixed): Accepted answers can either be a string for a single answer or an array for multiple answers.

dummyAnswers (array): Optional dummy answers to add to the mix.

Accessibility

Limitations

Not currently responsive

Viewport sizing


Version number: 1.0 Framework versions: 2.0 Author / maintainer: Dan Storey

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.