recurring_select icon indicating copy to clipboard operation
recurring_select copied to clipboard

support inline display of the dialog

Open tomasc opened this issue 8 years ago • 2 comments

We wanted to display the recurring select dialog inline (below the select input), so we customised your plugin as follows.

The inline display can be specified using data attribute on the input:

  f.select_recurring :current_existing_rule, nil, { :allow_blank => true }, { data: { recurring_select_position: 'inline' } }

A position class (either fixed or inline) is added to the . rs_dialog_holder element and the css now supports the two options.

We also adjusted the recurring_select_dialog.js.coffee.erb so that when inline:

  • the dialog is not vertically positioned
  • clicking anywhere outside of the dialog (body) cancels it

Mainly, these changes do not break existing configurations.

tomasc avatar Oct 23 '15 10:10 tomasc

any chance to have this merged?

tomasc avatar Mar 26 '16 11:03 tomasc

This would be great!

emilkarl avatar Sep 05 '16 13:09 emilkarl