Closed (fixed)
Project:
Webform Matrix Component
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2015 at 11:27 UTC
Updated:
3 Jan 2021 at 11:02 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
snufkin commentedAnd here is a patch for it. It exposes a setting per column and then enforces the #after_title attribute for each of the cells based on the column configuration.
Comment #3
snufkin commentedUpdating the patch to use a different attribute as there is actually a standalone setting for column titles.
Comment #4
devd commentedHi snufkin,
Please create a new patch for dev version.
Comment #5
snufkin commentedRerolled
Comment #6
devd commentedHi snufkin,
The ported patch is not working, Can you explain by screens. Which functionality you want to achieve.?
Comment #7
snufkin commentedI would like to hide the form labels for checkboxes (I don't think it is useful for radios).
In some cases, especially with the matrix component the options you expose are self-explanatory, e.g. the following table: https://www.evernote.com/l/AIjJjPlIMsRCNY6n_Kb0bRwB2kbNphGPWqo does not need the "yes" label next to each of the checkboxes, it just makes the table crowded. I would like to have an option to remove it.
The patch does this by exposing a form on the component configuration for each of the rows (perhaps it would be nicer if we were using #states, to only show when the radio option is used, but we can talk about it once the core functionality is accepted and works fine).
After patching there is an option to hide the label: https://www.evernote.com/l/AIiz2bNt6rVIJIXZA8puhqtuoOa_nZHCoIs
Which then renders like this: https://www.evernote.com/l/AIjDryuDSY5CaaG5uVmS5qVag1Vtk5BcdZM
Also the patch is rerolled, it was not respecting defaults correctly and used the column #title_display attribute incorrectly (not to mention the two whitespace errors).
Comment #8
chetan-singhal commentedComment #9
richgerdesPatch was outdated. Re-rolled patch for latest 7.x-4.x development version.
It had one bug, causing the configuration checkbox to be visible for select list fields which i fixed using the state api. Otherwise function works as expected.
Comment #11
chetan-singhal commentedComment #12
chetan-singhal commented