Is it possible to attach a click binding and visible binding to one element?
Ie:
<button data-bind="click: function, visible: anotherFunction">Test</button>
The workaround would be wrapping the button in a div and setting the visible binding to that element, however, I wanted to avoid this if possible.
Yes. Just enclose them in curly braces:
Edit: actually, I don’t think you even need the braces, just separate them with commas and you should be good.