-
Notifications
You must be signed in to change notification settings - Fork 784
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
… for the #8209
- Loading branch information
1 parent
22d4c52
commit 368100d
Showing
8 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/survey-angular-ui/example/src/app/components/itemContentTemplateComponent.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,4 +1,4 @@ | ||
<div class="sv-ranking-item__text" style="display: flex; align-items: center; gap: 8px;"> | ||
<svg [iconName]="'icon-next_16x16'" [size]="'16'" sv-ng-svg-icon></svg> | ||
<sv-ng-string [model]="text"></sv-ng-string> | ||
<sv-ng-string [model]="item.locText"></sv-ng-string> | ||
</div> |
4 changes: 2 additions & 2 deletions
4
packages/survey-angular-ui/example/src/app/components/itemContentTemplateComponent.ts
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
2 changes: 1 addition & 1 deletion
2
packages/survey-angular-ui/src/questions/ranking-item-content.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,3 +1,3 @@ | ||
<div [class]="cssClasses.controlLabel"> | ||
<sv-ng-string [model]="text"></sv-ng-string> | ||
<sv-ng-string [model]="item.locText"></sv-ng-string> | ||
</div> |
5 changes: 2 additions & 3 deletions
5
packages/survey-angular-ui/src/questions/ranking-item-content.component.ts
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,14 +1,13 @@ | ||
import { Component, Input } from "@angular/core"; | ||
import { BaseAngular } from "../base-angular"; | ||
import { ItemValue, LocalizableString, QuestionRankingModel } from "survey-core"; | ||
import { ItemValue } from "survey-core"; | ||
import { AngularComponentFactory } from "../component-factory"; | ||
|
||
@Component({ | ||
selector: "sv-ng-ranking-item-content", | ||
templateUrl: "./ranking-item-content.component.html" | ||
}) | ||
export class RankingItemContentComponent { | ||
@Input() text!: LocalizableString; | ||
@Input() item!: ItemValue; | ||
@Input() cssClasses: any; | ||
} | ||
AngularComponentFactory.Instance.registerComponent("sv-ng-ranking-item-content", RankingItemContentComponent); |
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
5 changes: 3 additions & 2 deletions
5
packages/survey-vue3-ui/example/src/components/test/test-custom-components/ItemContent.vue
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,9 +1,10 @@ | ||
<template> | ||
<div class="sv-ranking-item__text" :style="{display: 'flex', alignItems: 'center', gap: '8px'}"> | ||
<sv-svg-icon iconName="icon-next_16x16" size = "16"></sv-svg-icon> | ||
<survey-string :locString="text" /> | ||
<survey-string :locString="item.locText" /> | ||
</div> | ||
</template> | ||
<script lang="ts" setup> | ||
defineProps<{ text: any, cssClasses: any }>() | ||
import type { ItemValue } from 'survey-core'; | ||
defineProps<{ item: ItemValue, cssClasses: any }>() | ||
</script> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<template> | ||
<div :class="cssClasses.controlLabel"> | ||
<survey-string :locString="text" /> | ||
<survey-string :locString="item.locText" /> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import type { LocalizableString } from "survey-core"; | ||
import type { ItemValue } from "survey-core"; | ||
defineOptions({ inheritAttrs: false }); | ||
const props = defineProps<{ | ||
text: LocalizableString; | ||
item: ItemValue; | ||
cssClasses: any; | ||
}>(); | ||
</script> |