jQWidgets Forums

jQuery UI Widgets Forums Vue jqxForm checkbox not getting checked

This topic contains 2 replies, has 2 voices, and was last updated by  jqwidgetsdev 2 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • jqxForm checkbox not getting checked #130987

    jqwidgetsdev
    Participant

    Hi,

    Using the following jqxForm example why is the checkbox not getting checked?

    vue-form/vue-form-inputtypes.htm

    <template>
       <JqxForm ref="myForm"
            style="width: 500px; height: auto;"
            :template="template" :value="value">
        </JqxForm>
    </template>
    <script>
        import JqxForm from "jqwidgets-scripts/jqwidgets-vue/vue_jqxform.vue";
        export default {
            components: {
                JqxForm
            },
            data: function () {
                return {
                    template: [
                        {
                            bind: 'textBoxValue',
                            type: 'text',
                            label: 'Text input',
                            labelPosition: 'left',
                            labelWidth: '30%',
                            align: 'left',
                            width: '250px',
                            required: true
                        },
                        {
                            bind: 'passwordBoxValue',
                            type: 'password',
                            label: 'Password input',
                            labelPosition: 'left',
                            labelWidth: '30%',
                            align: 'left',
                            width: '250px',
                            required: true
                        },
                        {
                            bind: 'nubmberBoxValue',
                            type: 'number',
                            label: 'Number input',
                            labelPosition: 'left',
                            labelWidth: '30%',
                            align: 'left',
                            width: '250px',
                            required: true
                        },
                        {
                            bind: 'datetimeBoxValue',
                            type: 'datetime',
                            label: 'Date & time input',
                            labelPosition: 'left',
                            labelWidth: '30%',
                            align: 'left',
                            width: '250px',
                            required: true
                        },
                        {
                            bind: 'timeBoxValue',
                            type: 'time',
                            label: 'Time input',
                            labelPosition: 'left',
                            labelWidth: '30%',
                            align: 'left',
                            width: '250px',
                            required: true
                        },
                        {
                            bind: 'dateBoxValue',
                            type: 'date',
                            label: 'Date input',
                            labelPosition: 'left',
                            labelWidth: '30%',
                            align: 'left',
                            width: '250px',
                            required: true
                        },
                        {
                            bind: 'dropdownValue',
                            type: 'option',
                            label: 'Drop down list',
                            labelPosition: 'left',
                            labelWidth: '30%',
                            align: 'left',
                            width: '250px',
                            required: true,
                            component: 'jqxDropDownList',
                            options: [
                                { label: 'Option 1', value: 'value1' },
                                { label: 'Option 2', value: 'value2' },
                                { label: 'Option 3', value: 'value3' }
                            ]
                        },
                        {
                            type: 'label',
                            label: 'Radio buttons:',
                            rowHeight: '40px',
                        },
                        {
                            bind: 'radiobuttonValue',
                            type: 'option',
                            label: 'Radio buttons',
                            labelPosition: 'right',
                            columnWidth: '150px',
                            align: 'left',
                            optionsLayout: 'horizontal',
                            options: [
                                { label: 'Option 1', value: 'value1' },
                                { label: 'Option 2', value: 'value2' },
                                { label: 'Option 3', value: 'value3' }
                            ]
                        },
                        {
                            type: 'label',
                            bind: 'radiobuttonValue_out',
                            label: 'Boolean options / checkboxes:',
                            rowHeight: '40px',
                        },
                        {
                            columns: [
                                {
                                    columnWidth: '150px',
                                    bind: 'checkboxValue1',
                                    type: 'boolean',
                                    label: 'Checkbox 1',
                                    labelPosition: 'right',
                                    align: 'left',
                                    labelPadding: { left: 0, top: 5, right: 0, bottom: 5 }
                                },
                                {
                                    columnWidth: '150px',
                                    bind: 'checkboxValue2',
                                    type: 'boolean',
                                    label: 'Checkbox 2',
                                    labelPosition: 'right',
                                    align: 'left',
                                    labelPadding: { left: 0, top: 5, right: 0, bottom: 5 }
                                },
                                {
                                    columnWidth: '150px',
                                    bind: 'checkboxValue3',
                                    type: 'boolean',
                                    label: 'Checkbox 3',
                                    labelPosition: 'right',
                                    align: 'left',
                                    labelPadding: { left: 0, top: 5, right: 0, bottom: 5 }
                                }
                            ]
                        }
                    ],
                    value: {
                        'textBoxValue': 'text box value',
                        'passwordBoxValue': 'password box',
                        'nubmberBoxValue': 67.44,
                        'datetimeBoxValue': '2018-06-01 14:05:23',
                        'timeBoxValue': '2018-07-01 11:05:23',
                        'dateBoxValue': '2018-07-04 15:05:23',
                        'dropdownValue': 'value3',
                        'radiobuttonValue': 'value2',
                        'checkboxValue1': false,
                        'checkboxValue2': false,
                        'checkboxValue3': true
                    }
                }
            }
        }
    </script>
    jqxForm checkbox not getting checked #130996

    Hi,

    I could not reproduce the error, I can send you a demo project of this demo.
    Can you please provide me an email for that

    Best regards,
    Svetoslav Borislavov

    jQWidgets Team
    https://www.jqwidgets.com/

    jqxForm checkbox not getting checked #131004

    jqwidgetsdev
    Participant

    Hi Svetoslav,

    Ok, that will be great.

    Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.