2016-10-10 5 views

答えて

0

シフトイベントの設定です。 私はこれが役立つことを願っています。

const actionMapping:IActionMapping = { 
    mouse: { 
    click: (tree, node, $event) => { 
     $event.shiftKey 
     ? TREE_ACTIONS.TOGGLE_SELECTED_MULTI(tree, node, $event) 
     : TREE_ACTIONS.TOGGLE_SELECTED(tree, node, $event) 
    } 
    } 
}; 

@Component({ 
    selector: 'tree-test', 
    templateUrl: 'tree-test.component.html', 
    styleUrls: ['tree-test.component.css'] 
}) 

export class TreeTestComponent { 
    options = { 
    actionMapping 
    }; 

    // get data for nodes 
} 
関連する問題