I've built a ractive.js app using partials. These partials are loaded via fetch/ajax - and all works nicely.  I then decided I wanted to encapsulate data along with the partial so looked at components - as I understood a component to do just that...
I have a simple task of rearranging a couple of Arrays in a JSON, so ractive.js can handle it better. But I got carried away a bit, and the outcome was not particularly satisfactory.   An example of my initial Array:  [{   "_id": 1,   "ty...
I am creating example application with Ractive.js and gridstack.js, but can't figure out how to add gridstack as a decorator. I think this is the proper way to add jQuery elements to ractive.js, please advise if it's not.   After I created a...
I'm trying out a simplified version of the pie chart demo from Paths.js' website at http://andreaferretti.github.io/paths-js-demo/, to understand how it works when used with Ractive. I have most of it working locally, except for one error tha...
I was thinking on rewriting our legacy app which is using pure jQuery. It renders log data which it gets by websocket, it shows only last 100 records by removing old ones and appending new ones.  Because rendering speed matters, I've tried first...
Am I doing something wrong?  My template     <select id="muni" class="form-control" value="{{formData.muni_ssn}}" on-select="muni_selected">        {{#formData.municipalities}}        <option value="{{ssn}...
I'm trying to include HTML tags in data rendered by Ractive.js (to auto-subscript chemical symbols, in case anyone cares), but Ractive just inserts the text rather than creating new DOM elements.  A minimal test case, adapted from the 60-second s...
I am trying to achieve a simple draggable DIV with RactiveJS utilizing proxy events (on-mousedown,up,move,out)  Following JSFiddle works just fine, however when the user moves the mouse too fast the dragging stops. This is simply because the mouseeve...
I recently started trying out Ractive.js. I was particularly interested in its components. One of the things I noticed immediately is that many of the examples are using the init option. However when I try to use the init in my code I get a deprecati...
I am new to Ractivejs and I am trying to implement simple partial recursion...  My template is  List:<br>     <ul>          {{#list}}         {{>lipart}}         {{/list}}     </ul>  <!-- {{>lipart}} -->     <li>{{...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.