Implements data-binding for the selected case