@@ -302,6 +302,38 @@ def initally_open(title: "Test Dialog", subtitle: nil, size: :medium, button_tex
302
302
def with_header_filter
303
303
render_with_template ( locals : { } )
304
304
end
305
+
306
+ # @label With custom label for close button of header
307
+ #
308
+ # @param title [String] text
309
+ # @param subtitle [String] text
310
+ # @param button_text [String] text
311
+ # @param show_divider [Boolean] toggle
312
+ # @param close_label [String] text
313
+ def with_header_close_button_label ( title : "Test Dialog" , subtitle : nil , button_text : "Show Dialog" , show_divider : true , close_label : "Close me!" )
314
+ render_with_template ( locals : {
315
+ title : title ,
316
+ subtitle : subtitle ,
317
+ button_text : button_text ,
318
+ show_divider : show_divider ,
319
+ close_label : close_label
320
+ } )
321
+ end
322
+
323
+ # @label Without custom label for close button of header
324
+ #
325
+ # @param title [String] text
326
+ # @param subtitle [String] text
327
+ # @param button_text [String] text
328
+ # @param show_divider [Boolean] toggle
329
+ def without_header_close_button_label ( title : "Test Dialog" , subtitle : nil , button_text : "Show Dialog" , show_divider : true )
330
+ render_with_template ( locals : {
331
+ title : title ,
332
+ subtitle : subtitle ,
333
+ button_text : button_text ,
334
+ show_divider : show_divider
335
+ } )
336
+ end
305
337
end
306
338
end
307
339
end
0 commit comments