surveyjs / survey-creator

Scalable open-source survey software to generate dynamic JSON-driven forms within your JavaScript application. The form builder features a drag-and-drop UI, CSS Theme Editor, and GUI for conditional logic and form branching.
https://surveyjs.io/open-source
Other
896 stars 370 forks source link

Add a custom Button next to side settings panel #5471

Open vaishnav22 opened 4 months ago

vaishnav22 commented 4 months ago

Are you requesting a feature, reporting a bug or asking a question?

Feature

What is the current behavior?

image

What is the expected behavior?

Have a new button here which might help to navigate to different page.

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

const creatorOptions = {
    showLogicTab: true,
    isAutoSave: true,
    showDesignerTab: true,
    showTestSurveyTab: true,
    showTranslationTab: false,
    showJSONEditorTab: false,
    showThemeTab: true,
    questionTypes: ['text', 'checkbox', 'radiogroup', 'dropdown', 'boolean', 'comment', 'tagbox', 'image', 'matrix', 'matrixdropdown', 'matrixdynamic', 'multipletext', 'panel', 'paneldynamic', 'rating', 'ranking']
};

-----------------------

const creator = new SurveyCreator(creatorOptions);
creator.text = survey.json;

-----------------------
<Box sx={{ height: '100vh' }}>
       <SurveyCreatorComponent creator={creator} />
</Box>

Specify your

JaneSjs commented 4 months ago

Hello @vaishnav22, Would you please clarify how exactly you wish to render a custom button? As an option, consider overriding a Property Grid component as demonstrated at Override the Property Grid's component.

I look forward to your reply.

P.S. Let me note that SurveyJS Creator requires a commercial developer license.