I have a backbone view for some radio buttons that are essentially handling on which the radio button is on the page The data is to be collected and what to do if the radio button is clicked.
My problem is on some pages (where the user is required to go to the next page, when clicking on the radio button, I know stupid, but this requirement) gathering information on the View Models radio button Before click event is being triggered
Click What is a way to trigger the visual model to gather that information before the event starts?
I have my event at the top
extendEvents: {'click BTN': 'getClickEventAction'},
Creating visual model
createViewModel: function () {var viewModel = kb.viewModel (this model, {exclude: ['option']}); ViewModel.value = Workflow layout. Controll Value (see modell); // function where I am getting their prices and other fun stuff to make the rest of the app work. },
and then my clickAdventure
getClickEventAction: function (event) {var $ el = $ (event.currentTarget); Var Action = $ el.data ('clickeventaction'); Var code = $ el.data ('clickeventcode'); If (verb & amp; amp; this [verb]) this [action] (code); },
No comments:
Post a Comment