buttons: [{
style: "primary",
text: "",
link: "/component/troubles"
}, {
style: "primary",
text: "",
link: "/"
onButtonClick: fn(prop:name)
}]
how to call a method in methods or how to write in it