Carbon-fields: Modal Layout for Complex Fields

Created on 21 Nov 2016  路  3Comments  路  Source: htmlburger/carbon-fields

@holmar proposed a modal layout for the complex field:
Design

Related discussion: https://github.com/htmlburger/carbon-fields/issues/63#issuecomment-261060467

Potential issues:

  • Nested complex fields with modal layouts will need to "stack" the modals
  • Validation should probably need to happen on blur rather than on submit
feature

Most helpful comment

I find this one very important.
Since we have a lot of content sections in one complex field (as multiple groups) I would also love to have a modal for adding sections (multiple groups).

The modal could contain Tabs as Categories (e.g. Content, Conversations, Galleries, ...) and then list the sections available. Inspired by Visual Composers backend modals:
http://pauple.com/wordpress/wp-content/uploads/2016/05/visual-composer-page-elements.png

All 3 comments

Thanks for taking this into consideration!

Here's an idea how nested modals could work:

5_nested-modals

I agree that validation needs to happen on blur for this layout option.

I find this one very important.
Since we have a lot of content sections in one complex field (as multiple groups) I would also love to have a modal for adding sections (multiple groups).

The modal could contain Tabs as Categories (e.g. Content, Conversations, Galleries, ...) and then list the sections available. Inspired by Visual Composers backend modals:
http://pauple.com/wordpress/wp-content/uploads/2016/05/visual-composer-page-elements.png

This would be killer awesome, but would be nice to have the option for the modal via a method or config option so we could define whether to load in a modal.

Was this page helpful?
0 / 5 - 0 ratings