Problem/Motivation

Per Default to Equal Width there should be a way to set default widths via the table drag component. After setting what should be the defaults (e.g., full width for xs), new grids still default to None (advanced).

Default settings:

Adding new content:

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kthull created an issue. See original summary.

karuna patel’s picture

StatusFileSize
new586 bytes

Hi @kthull

Try this patch, it will set default column layout to "Equal Width" for each of the number columns.

b_sharpe made their first commit to this issue’s fork.

b_sharpe’s picture

Status: Active » Needs review

Sorting apparently wasn't doing what I thought. I've added an option to specify per breakpoint, per number of columns as to if you want to make the default the top most weighted item or not.

There's likely a more elegant way to do this, but I figure this will need a refactor anyhow when it comes to allowing custom breakpoints in the future and keeps it backwards compatible for now.

kthull’s picture

@b_sharpe I will test this in a couple days as the site I need it for is on code freeze for a host migration, but this sounds like, for now, a reasonable approach.

kthull’s picture

Finally getting to test this and the MR in #5 works perfectly. Thanks so much!

kthull’s picture

Status: Needs review » Reviewed & tested by the community

  • b_sharpe committed 5b92a15b on 2.0.x
    Issue #3379712 by karuna patel: Unable to set defaults
    
b_sharpe’s picture

Status: Reviewed & tested by the community » Fixed

Thank you

b_sharpe’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.