Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What happens to hidden-xs option from 1.4.1? #52

Open
instruccionesaldorso opened this issue Oct 28, 2020 · 1 comment
Open

What happens to hidden-xs option from 1.4.1? #52

instruccionesaldorso opened this issue Oct 28, 2020 · 1 comment

Comments

@instruccionesaldorso
Copy link

What should we do with old grids coming from 1.4.1 version that had in one of "xsCol" columns the value "hidden-xs"?
The option to hide these columns has been removed for 2.0.1 version.
Shouldn't an option "d-none" exist?

@SventB
Copy link

SventB commented Nov 13, 2020

I solved this that way (adding "d-none" to "xsCol" and "d-*-block" to all other cols but "xsCol"):

            case 'xsCol':
                $optionList = array(
                    array('LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:grid.label.autoLayout', 'col'),
                    array('25%', 'col-3'),
                    array('33%', 'col-4'),
                    array('50%', 'col-6'),
                    array('66%', 'col-8'),
                    array('75%', 'col-9'),
                    array('LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:grid.label.moreWidth', '--div--'),
                    array('8.3%', 'col-1'),
                    array('16.7%', 'col-2'),
                    array('41.7%', 'col-5'),
                    array('58.3%', 'col-7'),
                    array('83.3%', 'col-10'),
                    array('91.7%', 'col-11'),
                    array('100%', 'col-12'),
                    array('LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:grid.label.moreOptions', '--div--'),
                    array('LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:grid.label.notset', ' '),
                    array('LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:grid.label.variableWidth', 'col-auto'),
                    array('LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:grid.label.hidden', 'd-none'));
                break;
            case 'smCol':
                $optionList = array(array('LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:grid.label.notset', ' '),
                    array('25%', 'd-sm-block col-sm-3'),
                    array('33%', 'd-sm-block col-sm-4'),
                    array('50%', 'd-sm-block col-sm-6'),
                    array('66%', 'd-sm-block col-sm-8'),
                    array('75%', 'd-sm-block col-sm-9'),
                    array('LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:grid.label.moreWidth', '--div--'),
                    array('8.3%', 'd-sm-block col-sm-1'),
                    array('16.7%', 'd-sm-block col-sm-2'),
                    array('41.7%', 'd-sm-block col-sm-5'),
                    array('58.3%', 'd-sm-block col-sm-7'),
                    array('83.3%', 'd-sm-block col-sm-10'),
                    array('91.7%', 'd-sm-block col-sm-11'),
                    array('100%', 'd-sm-block col-sm-12'),
                    array('LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:grid.label.moreOptions', '--div--'),
                    array('LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:grid.label.variableWidth', 'col-sm-auto'),
                    array('LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:grid.label.hidden', 'd-sm-none'));
                break;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants