Skip to content

Commit

Permalink
Add a minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTsukanov committed Jan 10, 2024
1 parent 85f34bd commit 6af7473
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/martixBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,13 @@ export class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
/**
* An array of matrix columns.
*
* This array can contain primitive values or objects with the `text` (display value) and `value` (value to be saved in survey results) properties.
* For a Single-Select Matrix, the `columns` array can contain configuration objects with the `text` (display value) and `value` (value to be saved in survey results) properties. Alternatively, the array can contain primitive values that will be used as both the display values and values to be saved in survey results.
*
* [View Demo](https://surveyjs.io/form-library/examples/single-selection-matrix-table-question/ (linkStyle))
* [View "Single-Select Matrix" Demo](https://surveyjs.io/form-library/examples/single-selection-matrix-table-question/ (linkStyle))
*
* For a Multi-Select Matrix or Dynamic Matrix, the `columns` array should contain configuration objects with properties described in the [`MatrixDropdownColumn`](https://surveyjs.io/form-library/documentation/api-reference/multi-select-matrix-column-values) API Reference section.
*
* [View "Multi-Select Matrix" Demo](https://surveyjs.io/form-library/examples/questiontype-matrixdropdown/ (linkStyle))
*/
get columns(): Array<any> {
return this.getPropertyValue("columns");
Expand Down
2 changes: 1 addition & 1 deletion src/question_matrixdropdowncolumn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export var matrixDropdownColumnTypes: any = {
/**
* An auxiliary class that describes a column in a [Multi-Select Matrix](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list) or [Dynamic Matrix](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model).
*
* You can get an object of this class by calling the [`getColumnByName()`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list#getColumnByName) method on a matrix instance.
* You can get an object of this class from the [`columns`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list#columns) array or by calling the [`getColumnByName()`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list#getColumnByName) method on a matrix instance.
*/
export class MatrixDropdownColumn extends Base
implements ILocalizableOwner, IWrapperObject {
Expand Down

0 comments on commit 6af7473

Please sign in to comment.