Questions tagged [jsviews]

JsViews: Next-generation MVVM framework created and maintained by Boris Moore. Do NOT use this tag for questions about "JS views" in SAPUI5.

JsViews

Next-generation MVVM framework - bringing templates to life. Integrates with JsRender.

The JsViews framework brings declarative data-binding to JsRender templates, supports MVVM and MVP (custom tag controls), and much more...

Currently in pre-beta (could still have a few breaking changes in more advanced APIs).

See also on GitHub: https://github.com/BorisMoore/jsviews

JsRender can also be used stand-alone, without JsViews, and with or without jQuery:

209 questions
0
votes
1 answer

jsViews: Check data to be validated before the view is updated in data-link

The question is related to validating/catching the data before the binding update, in a manner that you can implement validation. Does anyone have any examples that are a generic type implementation, not specific of doing something in a similar…
Ronny
  • 471
  • 1
  • 5
  • 11
0
votes
2 answers

JsViews: data-linking with a helper function

I am using JsViews to render a list, but first passing the list through a helper function like so:
    {^{for ~filter(list, 'xyz')}}
  • ...
  • {{/for}}
Where filter creates a new list based on list with only some of the original…
Jonathan Apodaca
  • 5,458
  • 6
  • 30
  • 41
0
votes
1 answer

I need help on my first try with JsViews

I read John PAPA's article on JsRender and used its way of loading external HTML files to initialize templates and now I am trying to use JsViews on top of that but it doesn't work as expected !! I am trying to build a simple menu inside a UL and…
ClaudeVernier
  • 427
  • 4
  • 20
0
votes
1 answer

jsView - How to render the content of a custom tag with its props as its data?

I have custom tag which can have itself as an inner tag and I want to bind it its props as data. I can change the first test tag title property and see the change but cannot do that for the inner test tag. I think it is because of the wrong…
S.M.Amin
  • 509
  • 1
  • 8
  • 20
0
votes
1 answer

jsViews - display custom properties in object list

I have some data that I want to output using jsViews. The case is that objects in data array can have different set of attributes/columns based on some conditions. I store those attributes names in settings and would like to be able to print…
koniczynek
  • 103
  • 1
  • 7
0
votes
1 answer

Possible jsviews bug with {^{if}}

In the example below, if I add several guests and then remove the 1st guest the entire guest table disappears and never reappears even though the Guest[] in not empty. Is there something wrong with {^{if}} here or my code? (I'm using commit…
CHS
  • 965
  • 2
  • 18
  • 29
0
votes
1 answer

jsRender pivot rows to columns - display data in columns

I'm using jsRender and I wanted to display my data as columns rather then the rows I am returning. I want to pivot the data - is this something that can be done with jsRender. I can't get the data pivoted in SQL so my only option is to do it…
Arminder Dahul
  • 194
  • 5
  • 23
0
votes
1 answer

JsRender with JsViews - views is null or not an object

I'm trying to implement a real basic sample of JsViews in a wizard, have included jquery.observable and jquery.views But I get this error x-browser. "Views is null or not an object". The break occurs in jsRender, but I have other templating code…
MikeW
  • 4,749
  • 9
  • 42
  • 83
-1
votes
1 answer

How can I iterate over an array of objects in JSRender?

I can only render the first object from an array of objects in JSRender. How can I iterate all of the objects? {{for #data}} only shows first object from the data array. var data = [{ "id": "15", "name": "Jane Doe", "value": null }, { …
Ryan
  • 14,682
  • 32
  • 106
  • 179
-1
votes
1 answer

How can I reference a json object property in jsRender?

JSRender/JSViews templating engine renders JSON objects as follows:
{{:name}}
This works well for objects like {"name":"Foo","age":"28"}. But what if I have a person object instead (ex. {"person":{"name":"Foo","age":"28"}})? How can I…
Ryan
  • 14,682
  • 32
  • 106
  • 179
-1
votes
1 answer

Can I hook in jsviews to fire my own function when data is linked

I have found that jsviews performs the render at some indeterminate moment in the future after calling link. I would like to add some some that relies on the DOM content generated by the template. How can I do this?
Nicole
  • 699
  • 1
  • 5
  • 15
-1
votes
1 answer

JsViews vs AngularJS

I intend to develop single page application. jsViews/jsRender looks very promising and it is almost reaching Beta. Since I am new to SPA development I am curious to know how jsViews compares to other SPA frameworks such as AngularJS in terms of e.g.…
doorman
  • 15,707
  • 22
  • 80
  • 145
-2
votes
2 answers

Angular2 Vs combination of Jquery, JsRender and JSView

I am developing single page application which can be used on all the devices Phone, tablets (using apache Cordova) and desktop. Initially I started with Angular2 since it has component based development model (for code reusability), two way…
parag
  • 2,483
  • 3
  • 20
  • 34
-2
votes
1 answer

How to change model by JQuery using JsRender technology?

I use jsViews in my project and faced with the problem: When I change the value of input using JQuery the DOM is not changing. I use custom tag:{^{edit NOTE holderWidth='90'/}}, pm.mACQUAINTANCE.Items[2].row.NOTE in DOM is "1111" on aspx page…
1 2 3
13
14