How to add a Button in kendo pop up -


! [Cando Popup] [1]

How to Add a Button to View Details in the Cando Popup UI like Update, Cancel button. I want to add another button to that popup

This is HTML for a confirmation modal dialog

  & lt; Div data-role = "modalview" id = "confirmationView" data-init = "app.confirmationView.onInit" style = "display: none;" & Gt; & Lt; P class = "message" data-bound = "text: confirmation text" & gt; & Lt; / P & gt; & Lt; Hour & gt; & Lt; P & gt; & Lt; A data-role = "button" square = "button yes" data-bind = "click: on yickle" & gt; Yes & lt; / A & gt; & Lt; A data-role = "button" class = "no button" data-bind = "click: on noclic" & gt; No & lt; / A & gt; & Lt; / P & gt; & Lt; / Div & gt;  

and this is a view model for it (a required J module)

  / * global defined * / define (['kendo', 'jquery' ], Function (cando, $) {'use hard'; var viewmodel = kendo.ooswaveable ({callback: undefined, confirmation text: '', but: function () {kendo.bind ('# confirmationView', see Modell );}, On Yickic: Function () {if (viewofmodel.callback === 'function') {viewModel.closeConfirm (); viewModel.callback (true);} else {viewModel.closeConfirm ();}}, onNoClick : Function () {if (viewofmodel.callback === 'function') {viewModel.cellback (false);} viewModel.closeConfirm ();}, onCloseClic K: function () {viewModel.closeConfirm ();}, showConfirm: function (text, callback) {viewModel.callback = call back; ViewModel.set ('confirmationText', text); $ ("# confirmationView") show ( ) Data () kendoMobileModalView.open () ...}, close Confirm: function () {$ ("# confirmation view"). Data (). KendoMobileModalView.close ();}}); Return view model;}) ;  

To show a confirmation dialog, you can only call showConfirm from this module


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -