When using bubble can you use a datatype

When using bubble can you use a datatype

rdigiorgiordigiorgio Posts: 20Questions: 9Answers: 0

I am using bubble editing. I am not seeing the select box.

if (index === 3) { editor.bubble(this, 'active', { title: 'Enable/Disable transactions to an Analyst', buttons: [ { label: 'Cancel', fn: function () { this.close(); } }, { type: "select", label: 'Update', fn: function () { this.submit(); table.ajax.reload(); this.close(); }, name: "NAME", options: ["true","false"] } ] })

Answers

  • rdigiorgiordigiorgio Posts: 20Questions: 9Answers: 0

    Reformatted

            if (index === 3) {
                editor.bubble(this, 'active', {
                    title: 'Enable/Disable transactions to an Analyst',
                    buttons: [
                        {
                            label: 'Cancel', fn: function () {
                                this.close();
                            }
                        },
                        {
                            type: "select",
                            label: 'Update', fn: function () {
                                this.submit();
                                table.ajax.reload();
                                this.close();
                            },
                            name: "NAME",
                            options: ["true","false"]
                        }
                    ]
                })`
    

    `

  • rdigiorgiordigiorgio Posts: 20Questions: 9Answers: 0

    You must put the field definitions in the column definitions when creating the table not the display.

  • allanallan Posts: 52,724Questions: 1Answers: 8,070 Site admin

    Correct - the field need to be defined in the Editor initialisation through the fields parameter, or using add() to do it dynamically. They can't be added when calling bubble().

    Allan

Sign In or Register to comment.