Skip to content

Commit

Permalink
Add demo links
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Tsukanov committed Sep 29, 2023
1 parent fdd3689 commit 76acf36
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/question_paneldynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,10 @@ export class QuestionPanelDynamicModel extends Question
*
* - `{panelIndex}` - A panel index within the collection of all panels. Starts with 1.
* - `{visiblePanelIndex}` - A panel index within the collection of visible panels. Starts with 1.
*
* If you want to customize individual tab titles, handle `SurveyModel`'s [`onGetDynamicPanelTabTitle`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetDynamicPanelTabTitle) event.
*
* [View Demo](/form-library/examples/tabbed-interface-for-duplicate-group-option/ (linkStyle))
* @see templateTitle
* @see renderMode
*/
Expand Down Expand Up @@ -991,11 +995,11 @@ export class QuestionPanelDynamicModel extends Question
*
* Possible values:
*
* - `"list"` - Renders panels one under the other. [View Demo](https://surveyjs.io/form-library/examples/how-to-use-expressions-in-dynamic-panel/)
* - `"list"` (default) - Renders panels one under the other. [View Demo](https://surveyjs.io/form-library/examples/how-to-use-expressions-in-dynamic-panel/)
* - `"progressTop"` - Renders each panel as a card and displays a progress bar at the top. [View Demo](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/)
* - `"progressBottom"` - Renders each panel panel as a card and displays a progress bar at the bottom.
* - `"progressTopBottom"` - Renders each panel as a card and displays a progress bar at the top and bottom.
* - `"tab"` - Renders each panel within a tab. Use the [`templateTabTitle`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#templateTabTitle) to specify a template for tab titles.
* - `"tab"` - Renders each panel within a tab. Use the [`templateTabTitle`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#templateTabTitle) to specify a template for tab titles. [View Demo](/form-library/examples/tabbed-interface-for-duplicate-group-option/)
*/
public get renderMode(): string {
return this.getPropertyValue("renderMode");
Expand Down
4 changes: 4 additions & 0 deletions src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,10 @@ export class SurveyModel extends SurveyElementCore

/**
* An event that is raised before a [Dynamic Panel](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/) renders [tab titles](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#templateTabTitle). Use this event to change individual tab titles.
*
* For information on event handler parameters, refer to descriptions within the interface.
*
* [View Demo](/form-library/examples/tabbed-interface-for-duplicate-group-option/ (linkStyle))
*/
public onGetDynamicPanelTabTitle: EventBase<SurveyModel, DynamicPanelGetTabTitleEvent> = this.addEvent<SurveyModel, DynamicPanelGetTabTitleEvent>();

Expand Down

0 comments on commit 76acf36

Please sign in to comment.