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 - error, while using data-link

I have the following script template: I fire jsView with the…
user2160375
0
votes
1 answer

How can I bind to element attribute in jsview

I have a label like below. I wonder is it possible for jsview to support binding its title to its text? Can I show the same text in its title?
CodingTT
  • 1,125
  • 3
  • 14
  • 23
0
votes
1 answer

How do you use jsviews with jquery sortable?

I have setup a jsFiddle Example where I'm using jsViews with JQuery sortable. If you don't change anything, remove works correctly; but if you change the order of the items in the table, then remove any item, it deletes more then one. How do I fix…
Josh
  • 819
  • 1
  • 14
  • 30
0
votes
1 answer

How can I update underlying JSViews data from onclick event

I have a photogallery produced from a JSViews template with an upvote and downvote button. The OnClick triggers a database update to increment the underlying score. I also need to increment the Score field in the HTML rendered in the page so that it…
0
votes
1 answer

JSViews: How to make data-linked helper functions update correctly

I had a hard time figuring out how to data-link this scenario and thought of asking help several time but finally I resolved must of my issues, there is only one small part where I don't find the solution. I started a JsFiddle to test it :…
ClaudeVernier
  • 427
  • 4
  • 20
0
votes
1 answer

Jsviews helpers don't update on observable update (Array) anymore

After Commit 48 (Beta Candidate) i can't get observable array logic anymore. I know it has changed. I've read the changelog and been playing with new commit for some time but couldn't get it working. Helpers just don't update anymore. Any help…
gw128
  • 11
  • 2
0
votes
1 answer

Why does reset() function does not work properly with jsviews

I am using jsviews for data binding: My template My Form
0
votes
1 answer

Chrome Packages app with JSRender and JSviews

Can I use JSRender and JSViews libraries(http://www.jsviews.com/) in building Chrome Packaged App? Does it violate the CSP policy? This library syntax uses "script" tag to identify template definition in the HTML file...following is an example of…
0
votes
1 answer

parentNode.tagName.toLowerCase undefined

This fiddle generates the following error using jsviews: parentNode.tagName.toLowerCase is undefined This is because tagName is undefined. The fiddle represents the simplest possible case (using jsviews but not actually binding anything). My…
Joe Enzminger
  • 11,110
  • 3
  • 50
  • 75
0
votes
1 answer

JsViews: is there any way to get two-way data linking to work with contentEditable=true set on a

I can get two-way binding to work if I replace the div with contentEditable="true" with a textarea, but I don't like the way the text area behaves on the page. Is there anything that can be added to the template to get this to work, or a custom tag…
GeeWhizBang
  • 699
  • 4
  • 27
0
votes
1 answer

I'm trying to build up options from an array data value using jsView

if you have an array of items, without properties, how do you access the value inside a for loop? I currently get the right number of options, but I haven't found the correct syntax to get the value of the option. there's a working jsfiddle at:…
GeeWhizBang
  • 699
  • 4
  • 27
0
votes
1 answer

Force re-validation in jsViews if data-linked value doesn't change

I ran into an issue while using jsViews with validation (using code from jsviews.com/#samples) and jQuery UI Autocomplete: I have a converter (convertBack) on the field that transforms the entered text back into a GUID based on a dictionary. It…
neo post modern
  • 2,262
  • 18
  • 30
0
votes
2 answers

Load data into common jsView templates from a list of fields, including list options, dates, text

I've changed my mind about how the data looks to simplify the templating. I have a jsFiddle for this at: http://jsfiddle.net/geewhizbang/Y44Gm/4/ I now have this working except for the select items. I don't know yet if the two-way binding works my…
GeeWhizBang
  • 699
  • 4
  • 27
0
votes
1 answer

How to use jsviews to render a a multiple selection listbox

I have an object, that describes an application and one property can have several values from a list. I am using JSRender and JSViews for the databinding, I'm getting pretty good with the rendering part and I still have a lot to learn on JSViews. I…
ClaudeVernier
  • 427
  • 4
  • 20