📜  如何防止 ngb 手风琴中的面板切换事件 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:35.637000             🧑  作者: Mango

代码示例2
HTML:



TS:
public toggleAccordian( props:NgbPanelChangeEvent ): void{
   props.nextState // true === panel is toggling to an open state 
                              // false === panel is toggling to a closed state
   props.panelId    // the ID of the panel that was clicked
   props.preventDefault(); // don't toggle the state of the selected panel
}