You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here are a couple of handy methods we have started to use in our code, that I would like to see appear in 0.8 or 0.9:
React::Element#append_to(dom_element) # append this element to an existing DOM element i.e.div{"some div stuff"}.append_to(Element['.put-a-div-here'])Element#append(ele="<div></div>", &block) # append an element (default an empty div) to this dom element, and # render the block into the appended element (if the block exists) i.e.Element['.add-something'].appenddodiv{button{"click me"}}end# The first parameter (ele) is maintained so its compatible with the existing jQuery Element#replace_with(ele="<div></div>", &block) # like append but the existing element is replaced.
The text was updated successfully, but these errors were encountered:
Here are a couple of handy methods we have started to use in our code, that I would like to see appear in 0.8 or 0.9:
The text was updated successfully, but these errors were encountered: