mwasiluk / angular-surveys

Angular survey / form builder inspired by Google Forms
http://mwasiluk.github.io/angular-surveys
Apache License 2.0
241 stars 135 forks source link

How to add another checkbox like `Required` for the question element. #62

Open nishanc opened 6 years ago

nishanc commented 6 years ago

Is there a way to create another checkbox near Required, Can anyone help me with this, I cant find a way to do this. image

nishanc commented 6 years ago

I have tried adding another check box to mw-form-question-builder.html but it didn't work.

<div layout="row" layout-align="start center">
                <div flex="20">
                    <md-button class="md-accent md-raised" type="button" role="button" ng-click="ctrl.save()" translate="mwForm.buttons.questionReady">
                        Ready
                    </md-button>
                </div>
                <div flex>
                    <md-checkbox  ng-model="ctrl.question.required" ng-disabled="ctrl.readOnly" flex>
                        <span translate="mwForm.question.required">Required</span>
                    </md-checkbox>
                    <md-checkbox  ng-model="ctrl.question.calc" flex>
                        <span>New CheckBox</span>
                    </md-checkbox>
                </div>