by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Sebastian Sastre
    @sebastianconcept
    sure me too, thanks for the tips
    Stephan Hoyer
    @StephanHoyer
    Really can recomend mithril :P
    Ondrej Brinkel
    @der-On
    hello Stephan :)
    Stephan Hoyer
    @StephanHoyer
    hi Ondre
    Sebastian Sastre
    @sebastianconcept
    Hi guys
    Anyone here using RivetJS and twitter's typeahead?
    I'm having an issue with rv-placeholder
    Michael Richards
    @mikeric
    @sebastianconcept yep, we’re using typeahead + bloodhound. it has a great API, so it fits into a binder pretty easily, in my opinion.
    Sebastian Sastre
    @sebastianconcept
    cool, yeah I've made it work back in that day :)
    Michael Richards
    @mikeric
    nice
    @der-On, @sebastianconcept where i work, i recently wrote a new product using the flux architecture and react. it's a nice development experience, though you definitely end up with a lot more boilerplate in your components than with a databinding approach.
    Michael Richards
    @mikeric
    one huge benefit to the virtual-dom is that, in theory, you could render out to things other than DOM, such as canvas and native UI, etc.
    and i would say the benefit to something like rivets, is that your components are purely data-driven, (they don’t even know that they are bound to a piece of UI), which makes them highly decoupled and testable.
    and there is no framework-specific code that you need to adhere to in your components either.
    for example, in Rivets you would typically do this.editing = true, whereas in React you are doing this.setState({editing: true}).
    Michael Richards
    @mikeric
    a minor difference ofcourse, but it definitely makes for cleaner, easier to read code when all of your components are just plain javascript objects without any library-specific code.
    Michael Richards
    @mikeric
    flux + rivets is actually an excellent combination, from my expereience so far. actions update your stores, your stores then update your components and then your UI updates automatically with rivets behind the scenes.
    Sebastian Sastre
    @sebastianconcept
    thanks for sharing that @mikeric
    Simon Thörnqvist
    @drowzy
    is it possbile to pass an Object or a model attribute to the publish method in a two-way formatter? i.e
      <select class="form-control" rv-value="model:foo | bar model:baz">
    Ondrej Brinkel
    @der-On
    yes sure. Rivets accepts bound properties as formatter arguments
    Simon Thörnqvist
    @drowzy
    Ok, I having trouble with it since I get "model:baz" in my publish function and not the model attribute. Is the above correct syntax?
    Ondrej Brinkel
    @der-On
    hmm. can't really tell.
    Sebastian Sastre
    @sebastianconcept
    guys the rv-show admits formatters?
    <div id="signin-wrapper" rv-show="model.user | isNil"></div> <--- I'm thinking in something like this
    Sebastian Sastre
    @sebastianconcept
    Just works :D
    Ondrej Brinkel
    @der-On
    hello. I was away from rivets for some months and now am curious what the differences between 0.7.1 and 0.8.1 are. I guess everything will break my 0.7.1 legacy code?
    Ondrej Brinkel
    @der-On
    in 0.7.1 I was able to create html elements that have "rivets" attributes on them and they just worked. However now it does not seem to work anymore.
    Ondrej Brinkel
    @der-On
    I do not really understand how I can access scope properties within the components template.
    Ondrej Brinkel
    @der-On
    Okay understood now how the attributes on components work. Now I wonder how I can publish/set values from within a component. In two-way-binders it was easy by setting this.value = 'foo' and then calling this.publish()
    Ondrej Brinkel
    @der-On
    I geuss the passed data is already bound?
    so setting values on it should simply work right?
    Andre
    @Patriq
    hey :D
    lol just realized this is dead
    Jean-Christophe Cazeaux
    @jccazeaux
    No it's not dead, just don't have time for Rivets this summer :(
    Andre
    @Patriq
    :(
    Konrad Szalwinski
    @PunkSage
    Hi everyone. Is the library still under development or it is abandoned?
    Sergey
    @s-melnikov
    Hi all! Can anybody help me? I dont understand how i get recalculate total
    https://jsfiddle.net/6Le64cgh/2/
    Jean-Christophe Cazeaux
    @jccazeaux
    Hi, you will find more helping people on github. Do not hesitate to open an issue for your question. Https://www.github.com/mikeric/rivets
    Sergey
    @s-melnikov
    @jccazeaux ok, thanks
    Brian A.
    @brjadams

    template has:

    <td class="video_public"><input data-checked="video.is_public" type="checkbox"></td>

    my marrionette view has:

                  onRender: function () {
                      var self = this;
                      rivets.bind(self.$el, {
                          video: self.model,
                      });
                  },

    it use to work perfectly, but not sure what I've done that now causes the clicking of a checkbox to not send the new checkbox value to the backend

    Luiz Américo
    @blikblum
    If model is a Backbone model -> data-checked="video:is_public"
    Brian A.
    @brjadams
    yea, for some reason , that isn't triggering correctly @blikblum
    Brian A.
    @brjadams
    what would cause a double change event to trigger on a rivets check box?
    Luiz Américo
    @blikblum
    Backbone adapter uses : not .
    Brian A.
    @brjadams
    ?
    Luiz Américo
    @blikblum
    Luiz Américo
    @blikblum
    is_public is a field of the backbone model?
    Renato Marinho
    @renatomarinho
    This message was deleted
    Renato Marinho
    @renatomarinho
    This message was deleted
    Maarten Belmans
    @PoeHaH_twitter

    Can I do something like this?

    <input type="text" rv-value="myObject.options['the-option']" />