Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Allow for custom placeholders #51

Closed
wants to merge 1 commit into from

Conversation

borgstrom
Copy link

This change was originally authored by @bistoco

This is the safest way to allow users to specify their own custom placeholders, which is required when using tables.

Please merge

------ Original Commit ------

Added option for placeholder

  • added custom markup for placeholder as option, useful when using with tables.
    Example :
    // JS CODE
    $('table.data tbody').sortable(
    {  
    items: 'tr' ,
    placeholder : ' '
    }) ;

    // CSS STYLE FOR TR > TD
    .sortable-placeholder td
    {
    background:#FFFEB8;
    height:100px;
    width:100%;

    }

Added option for placeholder
- added custom markup for placeholder as option, useful when using with tables.
Example :
	// JS CODE
	$('table.data tbody').sortable(
	{  
		items: 'tr' ,
		placeholder : '<tr><td colspan="7">&nbsp;</td></tr>'
	}) ;

	// CSS STYLE FOR TR > TD
	.sortable-placeholder td
	{
		background:#FFFEB8;
		height:100px;
		width:100%;

	}
@borgstrom
Copy link
Author

Oops. I didn't see #33.

@borgstrom borgstrom closed this Mar 9, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants