railsdog/deface — Issue #18: Support for new action 'move_{before,after}'
Author: huerlisi
Created: 2011-12-15 21:17:09+00:00
State: open

The following additional action would help adapt to existing stylesheets or changing the structure of a view.

In it's simplest form it could be documented like this:

Action
* :move_before - Move element selected by parameter :from. The supplied selector is expected to select only a single element.

Optional
* :from - A Selector specifying which element should be removed from it's original place and be inserted at the selector parameter for :move_before

I'm not exactly sure if move_before and move_after should be accompanied by move_to, and move_bottom.

Another possible API would be to add another two source types:

Source
* :cut - A Selector specifying which elements should be removed from it's original place and be inserted at the selector pointed to in insertion actions
* :copy - A Selector specifying which elements should be copied and be inserted at the selector pointed to in insertion actions

Thanx for this gem, btw!!!
Cheers
Simon