forked from Sunbird-inQuiry/player
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from shreyas1434shinde/main
Issue task PS-3781 : UI implementation for ASQ in Player
- Loading branch information
Showing
3 changed files
with
98 additions
and
10 deletions.
There are no files selected for viewing
29 changes: 21 additions & 8 deletions
29
projects/quml-library/src/lib/asq/asq-options/asq-options.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,31 @@ | ||
<ng-container *ngIf="optionsShuffled && (layout === 'VERTICAL' || layout === 'DEFAULT')"> | ||
<div id="dragdropSpace" cdkDropList [cdkDropListData]="shuffledOptions" class="asq-horizontal-list" (cdkDropListDropped)="onDrop($event)"> | ||
<div class="asq-horizontal-box" *ngFor="let option of shuffledOptions" cdkDrag cdkDragBoundary="#dragdropSpace"> | ||
<div [innerHTML]="option.label"></div> | ||
<quml-reorder></quml-reorder> | ||
<div id="dragdropSpace" cdkDropList [cdkDropListData]="shuffledOptions" class="vertical-list" (cdkDropListDropped)="onDrop($event)"> | ||
<div class="box vertical-box" *ngFor="let option of shuffledOptions" cdkDrag> | ||
<div class="content"> | ||
<div class="mt-1r" [innerHTML]="option.label"></div> | ||
</div> | ||
<div class="drag-handle" style="display: flex; align-items: center;"> | ||
<quml-reorder></quml-reorder> | ||
</div> | ||
</div> | ||
</div> | ||
</ng-container> | ||
<ng-container *ngIf="optionsShuffled && (layout === 'HORIZONTAL')"> | ||
|
||
|
||
|
||
<ng-container *ngIf="optionsShuffled && layout === 'HORIZONTAL'"> | ||
<div id="dragdropSpace" cdkDropList cdkDropListOrientation="horizontal" [cdkDropListData]="shuffledOptions" class="horizontal-list" (cdkDropListDropped)="onDrop($event)"> | ||
<div class="asq-vertical-box" *ngFor="let option of shuffledOptions" cdkDrag cdkDragBoundary="#dragdropSpace"> | ||
<div class="drag-handle"> | ||
<div class="box horizontal-box" *ngFor="let option of shuffledOptions" cdkDrag> | ||
<div class="content"> | ||
<div class="mt-1r" [innerHTML]="option.label"></div> | ||
</div> | ||
<div class="drag-handle" style="display: flex; align-items: center;"> | ||
<quml-reorder></quml-reorder> | ||
</div> | ||
<div [innerHTML]="option.label"></div> | ||
</div> | ||
</div> | ||
</ng-container> | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters