Results 1 to 2 of 2

Thread: sencha modern bind constructor

  1. #1
    Sencha User
    Join Date
    Mar 2016
    Posts
    13

    Default sencha modern bind constructor

    Code:
    viewModel: {
        data: {
            search: {
                dateType: 1
            },
        },
    }
    
                items: [
                    {
                        xtype: 'selectfield',
                        editable: false,
                        valueField: 'type',
                        bind: {
                            value: '{search.dateType}'
                        },
                        store: {
                            data: [
                                { type: 1, text: 'start' },
                                { type: 2, text: 'end' },
                                { type: 3, text: 'change' },
                            ]
                        }
                    },
                ]
    bind constructor

    I want to get
    dateType: '2' not dateType: constructor

    how can I do?
    Attached Images Attached Images
    • File Type: png 1.PNG (19.4 KB, 15 views)

  2. #2
    Sencha User
    Join Date
    Mar 2016
    Posts
    13

    Default help!

    help me this matter

Similar Threads

  1. [OPEN] Modern: selectfield bind issue
    By mcelotti in forum Ext JS 6.x Bugs
    Replies: 5
    Last Post: 9 Apr 2017, 4:33 PM
  2. Sencha 6 Modern Apps
    By allhill in forum Ext JS 6.x Q&A
    Replies: 4
    Last Post: 17 Aug 2016, 1:32 AM
  3. [CLOSED] [MODERN] selectfield won't bind properly to numeric values
    By jorgemanrubia in forum Ext JS 6.x Bugs
    Replies: 4
    Last Post: 16 Feb 2016, 2:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •