Questions tagged [riot.js]

Riot is a React-like user interface micro-library. Incredibly fast, powerful yet tiny client side (MV*) library for building large scale web applications.

About

Despite the small size all the building blocks are there: a template engine, router, event library and a strict MVP pattern to keep things organized. On a finished application your views are automatically updated when the underlying model changes.

Current frameworks base their existence on following assumptions:

There's a big mass of common problems
MVC (or MVP) requires a framework
jQuery leads to spaghetti

Riot will teach you that none of the above is true. Client applications can be faster, simpler and smaller. They could be maintained with less people, less knowledge, and less worries.

Riot is a manifesto for vanilla JavaScript and jQuery.

Links

221 questions
0
votes
1 answer

RiotJS generates empty output

I develop RiotJS wrapper for Bootstrap 4. You can check a live example on Plunker. There is a custom tag I use it in the following way: Action. getting the…
Alexander Elgin
  • 6,796
  • 4
  • 40
  • 50
0
votes
1 answer

Riot.JS: Tag within Tag in HTML Page

I am new to RiotJS (just discovered it yesterday). I just tried to do a little experiment which did NOT work. I created two tag files (navbar.tag and dropdown.tag). Each one was as simple as could be – simply a h3 tag with the name of the file: //…
Moshe
  • 551
  • 3
  • 7
  • 17
0
votes
1 answer

Riot js using other libraries like jquery with server side rendering

I am trying to use jquery for dom manipulation on mount event of a component like this.

hi

This throws an…
Konza
  • 2,143
  • 17
  • 30
0
votes
2 answers

RiotJS + RiotControl how to scope events for one RiotStore

What's the best way to scope an event on two similar Riot components using two different RiotControl stores? Right now, no matter what button is pressed, the action is applied on both tags, since the control stores are global. I'm trying to figure…
Mataniko
  • 2,212
  • 16
  • 18
0
votes
1 answer

riot.js how to custom a DOM event handler

where could i custom a event handler to bound. These events are very common like tap, taphold, swipeleft, swiperight
Rick Lee
  • 13
  • 4
0
votes
0 answers

PubNub firing duplicate events when subscribing to multiple channels

My situation is roughly this: I need to create a 'chat flow', into which users can also add self-encapsulated submodules that have their own unique, private channels to communicate on. In other words, users are chatting in chat, user #1 hits an 'add…
HowDoIDoComputer
  • 1,383
  • 1
  • 10
  • 19
0
votes
0 answers

Can RiotJS be used with other JS frameworks

I have stumbled on the riotjs. I have gone through their tutorial and api on their website. But I cannot find any info on whether it can be used with frameworks like angularjs, react or knockout. Is it possible to use it with other frameworks?
Luke101
  • 63,072
  • 85
  • 231
  • 359
0
votes
1 answer

Material Design Lite Layout breaks on second upgradeDom()

I'm using Riot.js and I have a root element into which I render a different layout for login box and for the actual app. MDL version is 1.0.6. I wasn't allowed to post images but screenshots can be found here. It's a bit complicated to setup this in…
RanzQ
  • 11
  • 2
0
votes
1 answer

RiotJs How to do computed properties

The parent makes some computation before passing down the attribute It doesn't work. http://plnkr.co/edit/MguuodHHRlVytnikQKZ7?p=preview How to achieve this? It is very basic fixture in…
Hiep
  • 2,483
  • 1
  • 25
  • 32
0
votes
1 answer

RiotJS (& web2py): Keep two elements in sync

With RiotJS I created a simple element that has a contenteditable div in it for the user to modify (myFunction will style it according to some criteria). Now I want to have that element at the beginning and at the end of my website, and they should…
jogi
  • 11
  • 3
0
votes
0 answers

document.getElementById("box").focus() not focusing on element

Seeing if anyone can help me figure out why my element isn't focusing. I'm using RiotJS events and tags. But I don't think this problem has to do with Riot since I tried it with an element on the DOM and pure JS and it still doesn't work. In the…
damusix
  • 111
  • 1
  • 9
0
votes
2 answers

String.replace strange behaviour in IE11

I have encountered a strange issue with IE11. Consider the following (part of the riot.js framework): var s = "{JSON.stringify(\\{ amount: Math.floor(reward.amount) \\})}"; var s1 = s.replace(/\\{/g, '\uFFF0'); When running this code on localhost,…
Antoine
  • 5,055
  • 11
  • 54
  • 82
0
votes
1 answer

Get data from child tag in riot.js

I want to create a tag like this

habakuck
  • 103
  • 1
  • 3
0
votes
1 answer

riotjs trigger form onsubmit

So I have a simple form in RiotJS