Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 8 Next »

Form Configs Associated:


Master Component List

Following are the list of components required to be re-used across Mobile & Portal :
Please refer to following link for CC
https://github.com/Sunbird-Ed/SunbirdEd-consumption-ngcomponents/

Plugin/Component

Plugin Invocation

MetaData

PluginType

Course

<sb-course-card [content]={{?}} (cardClick)="cardClick($event)" (menuClick)="cardMenuClick($event)"><sb-course-card>

{}

Card

Announcement

<sb-announcement-card [content]={{?}} (cardClick)="cardClick($event)" (menuClick)="cardMenuClick($event)"><sb-announcement-card>

{}

View Only-Card

Chat

<sb-chat-room [chatRoomId]={{?}}></sb-chat-room>

{}

Module

Discussion Board

<sb-discussion-board boardId={{?}}></sb-discussion-board>

{}

Module

Text Book

<sb-library-card [content]={{?}} (cardClick)="cardClick($event)" (menuClick)="cardMenuClick($event)"><sb-library-card>

{}

Card

Content

<sb-content-card [content]={{?}} (cardClick)="cardClick($event)" (menuClick)="cardMenuClick($event)"><sb-content-card>

{}

Card

Collection

<sb-collection-card [content]={{?}} (cardClick)="cardClick($event)" (menuClick)="cardMenuClick($event)"><sb-collection-card>

{}

Card

Creation Form Config

Type

Config

AnnouncementCreate

{formName:””,fields:[{TextBox},{TextArea},{CheckBox},{Submit}]}

ChatCreate

{formName:””,fields:[{TextBox},{TextArea},{CheckBox},{Submit}]}

Discussion BoardCreate

{formName:””,fields:[formName:””,{TextBox},{TextArea},{CheckBox},{Submit}]}

….


Element Config

Drop Down Config

{
  "code": "category",
  "type": "select",
  "default": "loginRegistraction",
  "templateOptions": {
    "placeHolder": "Select Category",
    "multiple": false,
    "hidden": true,
    "dataSource": DATASOURCETYPE.LOCAL || DATASOURCE.CLOSURE || DATASOURCE.API
    "options": CLOSURE || INDEPENDENT SERVICE CALL || [
      {
        "value": "content",
        "label": "Content"
      },
      {
        "value": "loginRegistraction",
        "label": "Login/Registration"
      },
      {
        "value": "teacherTraining",
        "label": "Teacher Training"
      },
      {
        "value": "otherissues",
        "label": "Other Issues"
      }
    ]
  }
}

TextBox Config

{
      code: "declared-school-name",
      type: FieldConfigInputType.INPUT,
      default: 'hello Defalut value',
      templateOptions: {
        label: 'Sample Input',
        placeHolder: "ENTER_SCHOOL_NAME"
      }
    },
  • No labels