Skip to content

Commit b960c95

Browse files
authored
fix(docs): displaying removeTagsTexts data (#4992)
* fix(docs): displaying removeTagsTexts data * Update removed tags texts in custom-select.json
1 parent 823f4a6 commit b960c95

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

showcases/angular-showcase/src/app/components/custom-select/custom-select.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
[validMessage]="exampleProps?.validMessage"
6262
[validation]="exampleProps?.validation"
6363
(optionSelected)="console.log($event)"
64+
[removeTagsTexts]="exampleProps?.removeTagsTexts"
6465
></db-custom-select>
6566
}
6667
</ng-template>

showcases/react-showcase/src/components/custom-select/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ const getCustomSelect = ({
4242
validMessage,
4343
validation,
4444
invalidMessage,
45-
showRequiredAsterisk
45+
showRequiredAsterisk,
46+
removeTagsTexts
4647
}: DBCustomSelectProps & {
4748
lineBreak?: boolean;
4849
info?: boolean;
@@ -114,6 +115,7 @@ const getCustomSelect = ({
114115
onOptionSelected={(value) => {
115116
setValue(value);
116117
}}
118+
removeTagsTexts={removeTagsTexts}
117119
/>
118120
);
119121
};

showcases/shared/custom-select.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,10 +1833,10 @@
18331833
"multiple": true,
18341834
"id": "id-10271",
18351835
"removeTagsTexts": [
1836-
"Removed Option 1",
1837-
"Removed Option 2",
1838-
"Removed Option 3",
1839-
"Removed Option 4"
1836+
"Remove Option entry 1",
1837+
"Remove Option entry 2",
1838+
"Remove Option entry 3",
1839+
"Remove Option entry 4"
18401840
]
18411841
},
18421842
"children": []

showcases/vue-showcase/src/components/custom-select/CustomSelect.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ const getSearchFilter = (option: CustomSelectOptionType, _: string): boolean =>
8686
:selectedType="exampleProps?.selectedType"
8787
:formFieldWidth="exampleProps?.formFieldWidth"
8888
:on-option-selected="(values) => log(values)"
89+
:removeTagsTexts="exampleProps?.removeTagsTexts"
8990
/>
9091
</template>
9192
</DefaultComponent>

0 commit comments

Comments
 (0)