Questions tagged [canjs-control]

19 questions
0
votes
1 answer

Defaults in CanJS controller constructor

I have a controller that is similar to: var TheController = can.Control.extend({ defaults: { field: undefined }, "pluginName": "theControllerPlugin", }, { "init" : function(element, options) { field = options["fieldInOptions"]; Right…
ford prefect
  • 7,096
  • 11
  • 56
  • 83
0
votes
1 answer

canjs attach Control for element in Observe.List after render

Generally the problem is that my click action in Control doesn't work. In codes below you can see situation when i generate list with items using Observe.List, so it's updated when new element occurs on the list automatically (view below) and it's…
0
votes
1 answer

What is can.Control in canJS and why is it needed?

What is can.Control in canJS? any detailed examples would be helpful To my understanding can.control is used for tabs and grids within the html.
copthen
  • 3
  • 1
0
votes
1 answer

Set up a global listener/controller for events triggered on document with CanJS

Probably not the common use case, but I have several custom events being fired on document, and the application listens for them. Example: http://jsbin.com/uradod/3/edit How can I convert this to be CanJS controller? I was of something similar to…
Sherzod
  • 5,041
  • 10
  • 47
  • 66
1
2