Skip to content

Commit

Permalink
Add demo links to the itemComponent description
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTsukanov committed Jun 26, 2024
1 parent 1e6f0b7 commit 2b55bca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/question_baseselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1953,6 +1953,10 @@ export class QuestionSelectBase extends Question {
}
/**
* The name of a component used to render items.
*
* [View Dropdown Demo](https://surveyjs.io/form-library/examples/dropdown-box-with-custom-items/ (linkStyle))
*
* [View Ranking Demo](https://surveyjs.io/form-library/examples/dropdown-box-with-custom-items/ (linkStyle))
*/
public get itemComponent(): string {
return this.getPropertyValue("itemComponent", this.getDefaultItemComponent());
Expand Down
3 changes: 0 additions & 3 deletions src/question_ranking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,6 @@ export class QuestionRankingModel extends QuestionCheckboxModel {
this.setPropertyValue("longTap", val);
}

/**
* The name of a component used to render items.
*/
protected getDefaultItemComponent(): string {
return "sv-ranking-item";
}
Expand Down

0 comments on commit 2b55bca

Please sign in to comment.