Hey!
im creating my own extension following this guide http://flarum.org/docs/extend/start/
in this guide, we can see an example of main.js code :
import { extend } from 'flarum/extend';
import Post from 'flarum/components/Post';
app.initializers.add('acme-hello-world', function() {
extend(Post.prototype, 'view', function(vdom) {
vdom.children.push('?');
vdom.attrs.style = 'background-color: yellow';
});
});
The thing is I want to do more stuff with that vdom argument, on other components, but I have no idea how it works!
Where can i find a doc or something ? ?