跳至內容
選單
此問題已被標幟
2 回覆
5224 瀏覽次數

i have googled this a lot and so far i can only see either using confirm="Confirmation message"(which displays the dialog regardless of condition) or creating a wizard to achieve this.

is there any other way?


頭像
捨棄
最佳答案

Here's one way to implement it. Add 2 buttons - one with the  confirm="Confirmation message" and one without it. Add an attrs="{'invisible': [...]}" condition to the buttons to conditionally make them visible so that the button with the confirm="Confirmation message" is visible only when your condition is fulfilled.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
1月 19
6311
2
8月 25
2246
1
7月 25
779
1
8月 25
1150
0
5月 25
1268