Questions tagged [riot]

Riot is a fast, expressive, and contextual unit testing framework for Ruby.

Riot is a fast, expressive, and contextual unit testing framework for .

For more information, see the GitHub page.

64 questions
0
votes
1 answer

How to use RiotJS custom tags with Laravel 5.5?

I have a tag called invoice.tag which contains a html code that a want to repeat several times. And i want to use that tag in a view called add.blade.php. And in the end of that view i wrote this to call the invoice tag: @section('bottom') …
edwinchp
  • 181
  • 1
  • 3
0
votes
2 answers

Riot.js: mounting tags with same variable

I have 3 customs tags: my-tag1, my-tag2 and my-tag3 And I am using them like this: I am mounting all tags like this: riot.mount('*', { store:reduxStore…
Amparo
  • 784
  • 1
  • 4
  • 21
0
votes
1 answer

How to compare with json object in Riot?

How to compare key value with object in riot? am trying to compare key value with object in riot pleae suggest
0
votes
1 answer

Java - Riot API

I am using the RIOT Games APi and using the example code that is provided however the console displays: net.rithms.riot.dto.Game.RecentGames@35d176f7 I'm not so sure, I wrote a different code that requests user ID which works perfectly fine. …
Dani
  • 1
  • 3
0
votes
1 answer

Riot js undefined value

Someone can tell me why my code doesn't work please ?? I get "this.username is undefined" and i don't really understand why... Here the code : riot.tag2('test', '
Ravaniss
  • 21
  • 1
  • 1
  • 8
0
votes
0 answers

How to access 'this' tag instance inside tag lifecycle event?

I'm trying to update an array every time my tag receives an update from parent tags. Here is my code: var tag = function(opts){ this.set = []; var self = this; this.on('updated', function(){ var obj = opts.my_topics; var better_obj =…
skwny
  • 2,930
  • 4
  • 25
  • 45
0
votes
1 answer

How to show icon in specific row in table with onmouseover with Riot.js

I want to show icon in specific row in table body to delete that row. I searched solution and tried but that didn't go well. It is easy to show icon in all rows but difficult to show in specific row only. Below code is simple version of what I'm…
Hiro
  • 47
  • 8
0
votes
1 answer

Need help decoding JSON from Riot API with PHP

As a part of an assignment I am trying to pull some statistics from the Riot API (JSON data for League of Legends). So far I have managed to find summoner id (user id) based on summoner name, and I have filtered out the id's of said summoner's…
Tom
  • 1,747
  • 5
  • 23
  • 39
0
votes
0 answers

cloak attribute for riotjs to prevent raw html

sometimes the value of the object is displayed correctly, but sometimes [object] is displayed, this is resolved when pressing F5, to that's why I think that data isn't loaded when html is ready. In Angular there is cloak to prevent raw html to show…
user1008531
  • 491
  • 2
  • 8
  • 17
0
votes
1 answer

Uncaught ReferenceError: function is not defined error when calling riot function

I have data inserted into HTML like this:

{hdate}:{description}

I am trying to convert the span tag to textarea on mouseclick so…
kittu
  • 6,662
  • 21
  • 91
  • 185
0
votes
1 answer

Why is Riot JS evaluating this as javascript

I have a basic button tag I am experimenting with and I'm unsure why Riot JS is not rendering the below. If I wrap "Login" in a tag it renders correctly. I expect that because I have defined my