How to use the selector.allFirstLevelChildModules function in selector

To help you get started, we’ve selected a few selector examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rukzuk / rukzuk / app / sets / rukzuk / rz_core / modules / rz_selector_elements / assets / notlive / selectors.js View on Github external
var getGlobalCssSelectors = function () {
        var globalSel =  {};

        globalSel.other = [{
            title: i18n['selector.allChildModules'],
            selector: ' .isModule'
        }, {
            title: i18n['selector.allFirstLevelChildModules'],
            // includes selector for modules with wrappers, e.g. rz_box and rz_grid
            selector: ' > .isModule, > :not(.isModule) > .isModule, > :not(.isModule) > :not(.isModule) > .isModule'
        }, {
            title: i18n['selector.headlines'],
            selector: ' h1, h2, h3, h4, h5, h6',
            items: [{
                title: i18n['selector.headline1'],
                selector: ' h1'
            },{
                title: i18n['selector.headline2'],
                selector: ' h2'
            },{
                title: i18n['selector.headline3'],
                selector: ' h3'
            },{
                title: i18n['selector.headline4'],