Question T22614
Visible to All Users

Custom row rendering for Matrix | Dynamic Matrix Component

created 8 days ago

Hello, SurveyJS support team!
Hope this message finds you well

Is it possible to create custom rendering for rows in Matrices (matrix, dynamic matrix) components?

Here is a screenshot with matrix. And I want to have e.g. ability to incorporate custom component (e.g. slider) from the right side of each row.
Also, I could consider custom cell rendering which will be good option as well unlike creating component from scratch.
Please share any suitable document for this usecase. If its not possible or current version does not support this level of flexibility, let me know please

Thank you!

Clipboard-File-1.png

Answers approved by surveyjs Support

created 8 days ago

Hello Serhii,
A Multi-Select and Dynamic Matrix can use any supported question type as a matrix cell editor: View Demo. To integrate a Slider within a matrix cell, choose a suitable third-party slider component, integrate it with the SurveyJS Form Library (View Tutorial), and register your custom question type as a matrix cell type.

If you have any further questions, feel free to reach out.

For reference, we’re currently working on built-in Slider and Range Selector question types. Keep an eye on our release notes for updates.

    Show previous comments (3)

      Hello Serhii,
      Thank you for the update.
      You can render a custom icon within a row header text by using Markdown. However, from what I gather, you wish to render an icon or a checkbox which would trigger further actions. I may recommend that you implement a specialized or a custom question and use it as a column's editor.
      If you wish to render your custom icon/checkbox element before a matrix row header, you may disable the default row headers and use another read-only expression or HTML column to display row headers.
      Consider the following sample demo: View Plunker.

      I hope this information helps.

      Please let me know if you have any questions or require further assistance.

      Thanks

      SV SV
      Serhii Viazkov 6 days ago

        Looks like a solution to me!
        thank you! ❤️

          You're always welcome. Please feel free to contact us if you require further assistance.

          Have a nice day!