@angus
Thanks for you plugin.
I have some question about your widget.
in your profile widget there is some lines :
h('h3', this.attach('link', {
route: 'user',
model: currentUser,
className: 'user-activity-link',
icon: 'user',
rawLabel: username
}))
or
this.attach('button', {
label: "sign_up",
className: 'btn-primary sign-up-button',
action: "sendShowCreateAccount"
})
I know what these codes do but I donât know where how to modify these codes.
for example I want to add a create topic button to widget but I donât know how should I change
this code:
this.attach('button', {
label: "sign_up",
className: 'btn-primary sign-up-button',
action: "sendShowCreateAccount"
})
I know what is className(used for CSS) and label and rawLabel(used for translation)(if I am wrong please tell me) but I donât know where should I find all other actions for button and icons.
I have another question,
In this code:
h('h3', this.attach('link', {
route: 'user',
model: currentUser,
className: 'user-activity-link',
icon: 'user',
rawLabel: username
}))
what does the route
and model
do?what is link
?
Last question, in this code:
contents.push("img", "")
how should I config the image source?image is not in my site