File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ They support a number of use cases from user notification to completely custom c
61
61
62
62
` <b-modal> ` , by default, has an ** OK** and a ** Close** button in the footer. These buttons can
63
63
be customized by setting various props on the component. You can customize the size of the buttons,
64
- disable the ** OK** button, hide the ** Close** button (i.e. OK Only), and provide custom
64
+ disable the ** OK** button, hide the ** Close** button (i.e. OK Only), choose a variant (e.g. ` danger `
65
+ for a red OK button) using the ` ok-variant ` and ` close-variant ` props, and provide custom
65
66
button content using the ` ok-title ` and ` close-title ` props, or using the named
66
67
slots ` modal-ok ` and ` modal-cancel ` .
67
68
Original file line number Diff line number Diff line change 55
55
<footer class =" modal-footer" ref =" footer" v-if =" !hideFooter" >
56
56
<slot name =" modal-footer" >
57
57
<b-btn v-if =" !okOnly"
58
- variant =" secondary "
58
+ : variant =" closeVariant "
59
59
:size =" buttonSize"
60
60
@click =" hide(false)"
61
61
><slot name =" modal-cancel" >{{ closeTitle }}</slot ></b-btn >
62
- <b-btn variant =" primary "
62
+ <b-btn : variant =" okVariant "
63
63
:size =" buttonSize"
64
64
:disabled =" okDisabled"
65
65
@click =" hide(true)"
239
239
okTitle: {
240
240
type: String ,
241
241
default: ' OK'
242
+ },
243
+ closeVariant: {
244
+ type: String ,
245
+ default: ' secondary'
246
+ },
247
+ okVariant: {
248
+ type: String ,
249
+ default: ' primary'
242
250
}
243
251
},
244
252
methods: {
You can’t perform that action at this time.
0 commit comments