User tests: Successful: Unsuccessful:
Pull Request for Issue #29241.
Adds a new layout that rendering subforms fields in Grid (which partially mimic the table look).
Wich make it more responsive.
It is not 1:1 replacement for table, here is no headers and the labels is rendered within the input.
But in most cases should be good for such views.
Run npm install
Create subform field somewhere:
<field type="subform" name="subform1" label="subform1" multiple="true"
layout="joomla.form.field.subform.repeatable-grid">
<form>
<field type="text" name="text" label="Text"/>
<field type="text" name="text2" label="Text2"/>
<field type="text" name="text3" label="Text3"/>
</form>
</field>
<field type="subform" name="subform2" label="subform2" multiple="true" groupByFieldset="true"
layout="joomla.form.field.subform.repeatable-grid">
<form>
<fieldset name="set1" label="Set 1">
<field type="text" name="text" label="Text"/>
</fieldset>
<fieldset name="set2" label="Set 1">
<field type="text" name="text2" label="Text2"/>
<field type="text" name="text3" label="Text3"/>
</fieldset>
</form>
</field>
And check that it looks good on small and normal screens.
Also try edit the Custom field options for List field in backend, with browser width around 1000-1200px
The options input for List field is cutted:
Testing field works.
The options input for List field looks good:
Please select:
Please write your opinions.
Do we need this, do we do it in this way or should be something else. Thanks!
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_users Language & Strings Repository NPM Change Layout Front End Plugins |
Labels |
Added:
?
Feature
Language Change
NPM Resource Changed
PR-5.1-dev
|
Labels |
Added:
?
Removed: ? |
Labels |
Added:
RFC
Removed: ? |
Title |
|
Title |
|
Labels |
Added:
PR-5.2-dev
Removed: RFC PR-5.1-dev |
This pull request has been automatically rebased to 5.3-dev.
Title |
|
@Fedik tested in an own component and really like it.
My subform in three variants after Patch: repeatable, repeatable-grid and repeatable-table