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 - re-evaluate 'if' tag on root property change

I have created a table/grid using jsViews. Each row has an edit button which when clicked selects the row and shows input controls instead of text values. If I show/hide the inputs using…
Steve Young
  • 532
  • 1
  • 7
  • 13
0
votes
1 answer

In jsViews there is a `setProperty()` method. How do I do `removeProperty()`?

In the jsRender documentation there is a method $.observable(object).setProperty() but how do I remove a property from the object observably?
Floris
  • 1,082
  • 10
  • 26
0
votes
1 answer

Is it possible for jsrender to render a field name dynamically?

Is it possible to have a dynamic field name in jsrender like this. {{}} Common template as generic one. Cell content value is bound to a datasource. Is it possible?
Sunil Prabakar
  • 442
  • 1
  • 5
  • 19
0
votes
1 answer

JsView Retrieve the view associated to a data item

If I want to find the underlying data that powers a view, I would write something like: var actualData = $.view(this).data; However if I want to find the view associated to a data, how can I achieve this? Something like this: var view =…
Parth Shah
  • 2,060
  • 1
  • 23
  • 34
0
votes
1 answer

JsView Select does not display selected option immediately after clicking on it

I ran into a case where selecting of an option that is data bound to my javascript data object resulted into a different option being shown as selected. Example data object: var data = { "person": { "no" : 2 }, "options": [ …
Parth Shah
  • 2,060
  • 1
  • 23
  • 34
0
votes
1 answer

Using jsViews/jsRender with a property retuned as dictionary entries

I was wondering why cannot seem to get this down correctly. I have a JSONResult in MVC returning a collection of "Job" objects. One of the properties of the "Job" objects is a Dictionary. I cannot seem to figure out how to add this to the "Job"…
Casey ScriptFu Pharr
  • 1,672
  • 1
  • 16
  • 36
0
votes
1 answer

How to set css to custom tag (datepicker) in jsviews?

It might be a simple question for those who are already familiar with jsviews. It is taking me more than a hour to figure out how to set/append the CSS class to datepicket tag. I am following this example:…
Michael Sync
  • 4,834
  • 10
  • 40
  • 58
0
votes
1 answer

JsViews : two-way binding issue

When you bind an additional attribute in data-link, the default bindng and trigger=true stopped working. There is no error or anything obvious. But it doesn't work. default binding In this example (http://jsfiddle.net/BorisMoore/wch601L9/ ), the…
Michael Sync
  • 4,834
  • 10
  • 40
  • 58
0
votes
1 answer

JSViews visible link with converter doesn't work

I upgraded to the latest version of JsViews and it seems like something broke. If I have a data-link like "visible{:property}", it works. If I have a data-link like "visible{convert:property}", it does not work. From what I can tell it seems like…
Backslider
  • 109
  • 1
  • 8
0
votes
1 answer

Summary Value Calculation with JsViews

I like to display two summary data on my page by using jsviews binding. The UI will be something like in screenshots. The user can add/remove the person from the list and it will affect the value of "No. Of People" and the user can edit integer…
Michael Sync
  • 4,834
  • 10
  • 40
  • 58
0
votes
2 answers

Getting the data object by using view name or place holder name

I am using jsView (v1.0.0-alpha) I am having an issue in getting the data from the view. Let's I have the following code. (I created a simplified version here http://jsfiddle.net/j5oc0svg/ ) I am trying to get the data object that I bind to the view…
Michael Sync
  • 4,834
  • 10
  • 40
  • 58
0
votes
2 answers

Reference array element in jsView

I have simple test app, I want to remove and add tags, I have code like this: