bind a method to a custom attribute declaratively

Sorry for the merge conflict in the last pull request. I'm not yet fluent with git.
This is another try. I hope it's all right now.

I have added binding a method declaratively to a custom attribute in a custom element (in addition to the value binding).
I found this convenient and think it fits with this  example.