Declaritive way of mapping users actions to custom element methods