We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need for an help to use editable extension with different x-editable options reading from database.
I tried to pass something like this:
mystringfromdb = [ { "field:" "roomType'" }, { "field": "Mon", "editable": "{ type: 'number', title: 'Update Rates', validate: function (v) { if (!v) return 'Please Enter Rate Value'; if (parseFloat(v) < 0) return 'Rate should be greater than 0'; }} " } ];
var mycol= JSON.parse(mystringfromdb); .....$($able).bootstrapTable('destroy').bootstrapTable({ data: mydata, ..... columns: mystringfromdb ...... )}
but i receive always "Uncaught TypeError: g[c] is undefined".
If analyze html
i see
60: Object { field: "Mon", … } editable: "{type: 'number', title: 'Update Rates', validate: function (v) { if (!v) return 'Please Enter Rate Value'; if (parseFloat(v) < 0) return 'Rate should be greater than 0'; }" field: "Mon" .....
if i use only editable=true all is ok but i can't implement validate function.
How can i pass x-editable options for using with JSON.parse function ? Problems may be double quotes ?
Any help is appreciate.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I need for an help to use editable extension with different x-editable options reading from database.
I tried to pass something like this:
but i receive always "Uncaught TypeError: g[c] is undefined".
If analyze html
i see
60: Object { field: "Mon", … } editable: "{type: 'number', title: 'Update Rates', validate: function (v) { if (!v) return 'Please Enter Rate Value'; if (parseFloat(v) < 0) return 'Rate should be greater than 0'; }" field: "Mon" .....
if i use only editable=true all is ok but i can't implement validate function.
How can i pass x-editable options for using with JSON.parse function ?
Problems may be double quotes ?
Any help is appreciate.
The text was updated successfully, but these errors were encountered: