Questions tagged [canjs-view]

This tag should be used for questions regarding ejs, mustache, stache, rendering, and mustache/stache helpers.

28 questions
6
votes
2 answers

how to animate canjs templates

Can anyone explain How to animate mustache templates? I am following the documentation from canjs animation I have downloaded animate from here. I have added to my app.js file. So how can I load that file in application? I have written this code in…
Dipesh Raichana
  • 1,008
  • 3
  • 18
  • 36
2
votes
1 answer

Canjs – When to use which mustache tag when iterating lists?

There seems to be a few different ways to do the same thing in Can.js, which is great! But some of the ways work a little differently than others, and can affect how the DOM is rendered and updated. I'd appreciate it if someone could clear up the…
savinger
  • 6,544
  • 9
  • 40
  • 57
1
vote
0 answers

Handle NDJSON Stream Promises in Stache Can.js

I have this streaming API endpoint: https://step3-ndjson-stream-api-demo.glitch.me/ I try to render with can.js NDJSON stream and following the example got some success output to console.log but only the first object. Here's my app.js…
Ardhi
  • 2,855
  • 1
  • 22
  • 31
1
vote
2 answers

CanJS - Two way binding

How to do two-way binding using CanJS? Enter the Text : Display the Text: {{enteredText}} Can show multiple approaches? Using ViewModel ?
Santosh
  • 875
  • 5
  • 14
  • 33
1
vote
0 answers

Ipad Safari rendering issue on dynamic generated javascript controls

I have a weird rendering issue on iPad Safari on iOs 9.2 (current, but on other versions too). I have a dynamic autocomplete dropdown that is rendered via CanJs framework and the EJS template system. On Safari I get a weird line over the input when…
Lucaci Andrei
  • 398
  • 9
  • 20
1
vote
1 answer

How to bind an event to Can.Control to run whenever an element matching the selector is added to the control element?

I am trying to build a DateTimePicker Widget and do not want to worry about the instantiation of the widget so I have created a Can.Control which takes the html body as the element. But, now my input elements are rendered in the DOM using can.view.…
Neil DCruz
  • 195
  • 2
  • 13
1
vote
0 answers

CanJS can-value does not work for multi-select when options are rendered using Map?

I'm having trouble getting the selected values to be rendered using the can-value helper for multi-select inputs. This problem specifically occurs when the options are rendered dynamically using a can.Map as opposed to having the options available…
Neil DCruz
  • 195
  • 2
  • 13
1
vote
2 answers

Loading a template from an external file in CanJS

If I add below code in my index.html then it's working fine but I want to define in external file and then I want to load it with can.view.