Skip to content

Commit

Permalink
Add displayMode in Serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 committed Sep 3, 2024
1 parent cdfe616 commit 173949c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/survey-core/src/martixBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
this.setPropertyValue("displayMode", val);
}
public get displayMode(): "auto" | "table" | "list" {
return this.getPropertyValue("displayMode", "auto");
return this.getPropertyValue("displayMode");
}

//a11y
Expand Down Expand Up @@ -401,7 +401,13 @@ Serializer.addClass(
choices: ["top", "middle"],
default: "middle",
},
{ name: "alternateRows:boolean", default: false }
{ name: "alternateRows:boolean", default: false },
{
name: "displayMode",
default: "auto",
choices: ["auto", "table", "list"],
visible: false
},
],
undefined,
"question"
Expand Down

0 comments on commit 173949c

Please sign in to comment.