0.0.12 • Published 5 years ago

vteacher v0.0.12

Weekly downloads
45
License
-
Repository
-
Last release
5 years ago

vTeacher Integrator

This library was generated for the purpose of integrating the vTeacher service into angular web applications.

Overview

vTeacher is an elibrary service that provides materials and resources for students and teachers in academic institutions.

Installation

$npm install vteacher without adding it to the package.json

$npm install --save vteacher adds it to the package.json

Usage

Import the module in your .module file.

import { VteacherModule } from "vteacher";

Add the module to your imports array.

imports: [...VteacherModule.forRoot('pubVT_xxxxxxxxxxxxxxxxxxx')]

In your .html file, add <vteacher-viewer></vteacher-viewer>, it has a set of attributes that can be used to specify the material to be displayed.

Attributes

AttributeTypeDescriptionRequired
tokenstringThe vTeacher public token used to authenticate your access to the service.True
curriculumstringThe vTeacher curriculum string for the type of educational curriculum to be displayed.True
classIDstringThe vTeacher id string of the class whose content is to be displayed.True
schoolstringThe school id pre-registered on the vTeacher dashboard.True
subjectIDstringThe vTeacher id string of the subject to be displayed.True
userIDstringThe unique id of the user using the service.True
heightstringCSS attribute to specify the height of the viewer. Default: 92vhFalse
hasMaterialIconbooleanIndicates if the parent application has Angular Material Package already in use. Default: trueFalse
themeobjectVTeacherTheme object that contains properties for the viewer's theme. Default: Light themeFalse

Triggers

TriggerResponse
exitReturns a boolean value indicating that the viewer should be closed

Example

<vteacher-viewer classID='j1' subjectID='eng35' curriculum="ngn" school="sapmas" userID="user_1" (exit)="close($event)"></vteacher-viewer>

Further help

To get more information on the service, visit our Developers page.

0.0.12

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.3

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.6

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

1.0.0

5 years ago