When using bubble can you use a datatype

When using bubble can you use a datatype

rdigiorgiordigiorgio Posts: 29Questions: 11Answers: 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: 29Questions: 11Answers: 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: 29Questions: 11Answers: 0

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

  • allanallan Posts: 63,687Questions: 1Answers: 10,500 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

This discussion has been closed.