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

Responsive configuration on Listview not working correctly #6932

Open
marciogurka opened this issue Jun 7, 2023 · 0 comments
Open

Responsive configuration on Listview not working correctly #6932

marciogurka opened this issue Jun 7, 2023 · 0 comments
Labels
bug Something isn't working forum Issues from forum OEM OEM customer premium

Comments

@marciogurka
Copy link

Forum post

Checking the documentation and adapting this demo https://bryntum.com/products/calendar/examples/listview/

It's expected that the columns configuration accepts a responsiveLevels property, but that is not working (the columns are still displayed even on smaller screens).

const calendar = new Calendar({
    // Start life looking at this date
    date : new Date(2020, 9, 12),

    // Show the event list
    modes : {
        list : {
            range   : 'year',
            columns : [
                {
                    field            : 'name',
                    text             : 'Assignment/Task',
                    responsiveLevels : {
                        '*'    : { hidden : false },
                        medium : { hidden : false },
                        small  : { hidden : false }
                    }
                },
                {
                    field            : 'startDate',
                    responsiveLevels : {
                        '*'    : { hidden : false },
                        medium : { hidden : true },
                        small  : { hidden : true }
                    }
                },
                {
                    field            : 'endDate',
                    responsiveLevels : {
                        '*'    : { hidden : false },
                        medium : { hidden : true },
                        small  : { hidden : true }
                    }
                }
            ],
            features : {
                group : {
                    field : 'startDate'
                }
            }
        }
    },

    mode : 'list',

    // CrudManager arranges loading and syncing of data in JSON form from/to a web service
    crudManager : {
        loadUrl    : 'data/busy.json',
        // This demo uses a custom Event model with extra fields
        eventStore : {
            modelClass : AppEvent
        },
        autoLoad : true
    },

    appendTo : 'container'
});

@marciogurka marciogurka added bug Something isn't working premium forum Issues from forum OEM OEM customer labels Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum OEM OEM customer premium
Projects
None yet
Development

No branches or pull requests

1 participant