How to use the omi.get function in omi

To help you get started, we’ve selected a few omi 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 Tencent / omi / md2site / template / app / src / component / head / index.js View on Github external
toggleMenus(evt){
        this.toggleClass(Omi.get('sidebar').node,'show');
        evt.stopPropagation();
    }
github Tencent / omi / docs / old-bak / src / component / head / index.js View on Github external
toggleMenus(evt){
        this.toggleClass(Omi.get('sidebar').node,'show');
        evt.stopPropagation();
    }
github Tencent / omi / docs / old-bak / src / component / list / index.js View on Github external
goto(name, index) {

        Omi.get('content').data.name = name;
        Omi.get('content').update();
        this.data.currentIndex = index;
        this.parent.children.forEach((child,index) => {
            child.data.active = false;
            if (child.id === this.id) {
                Omi.get('pager').activeIndex = index;
                child.data.active = true;
            }
            child.update();
        });
        Omi.get('pager').currentIndex = index;
        Omi.get('pager').update();
        document.body.scrollTop = 0;
    }
github Tencent / omi / docs / old-bak / src / component / list / index.js View on Github external
goto(name, index) {

        Omi.get('content').data.name = name;
        Omi.get('content').update();
        this.data.currentIndex = index;
        this.parent.children.forEach((child,index) => {
            child.data.active = false;
            if (child.id === this.id) {
                Omi.get('pager').activeIndex = index;
                child.data.active = true;
            }
            child.update();
        });
        Omi.get('pager').currentIndex = index;
        Omi.get('pager').update();
        document.body.scrollTop = 0;
    }
github Tencent / omi / docs / old-bak / src / component / pager / index.js View on Github external
goto(name , dir){
        let sidebar = Omi.get('sidebar');
        if(dir ==='next'){
            sidebar.children[this.activeIndex].goto(name,++this.currentIndex);
        }else{
            sidebar.children[this.activeIndex].goto(name,--this.currentIndex);
        }
        this.update();
    }
github Tencent / omi / docs / old-bak / src / component / list / index.js View on Github external
this.parent.children.forEach((child,index) => {
            child.data.active = false;
            if (child.id === this.id) {
                Omi.get('pager').activeIndex = index;
                child.data.active = true;
            }
            child.update();
        });
        Omi.get('pager').currentIndex = index;
github Tencent / omi / docs / old-bak / src / component / head / index.js View on Github external
setTimeout(()=>{
                this.removeClass(Omi.get('sidebar').node,'show');
            },300);
        },false);
github Tencent / omi / docs / old-bak / src / component / list / index.js View on Github external
goto(name, index) {

        Omi.get('content').data.name = name;
        Omi.get('content').update();
        this.data.currentIndex = index;
        this.parent.children.forEach((child,index) => {
            child.data.active = false;
            if (child.id === this.id) {
                Omi.get('pager').activeIndex = index;
                child.data.active = true;
            }
            child.update();
        });
        Omi.get('pager').currentIndex = index;
        Omi.get('pager').update();
        document.body.scrollTop = 0;
    }
github Tencent / omi / docs / old-bak / src / component / list / index.js View on Github external
goto(name, index) {

        Omi.get('content').data.name = name;
        Omi.get('content').update();
        this.data.currentIndex = index;
        this.parent.children.forEach((child,index) => {
            child.data.active = false;
            if (child.id === this.id) {
                Omi.get('pager').activeIndex = index;
                child.data.active = true;
            }
            child.update();
        });
        Omi.get('pager').currentIndex = index;
        Omi.get('pager').update();
        document.body.scrollTop = 0;
    }

omi

<p align="center"><img src="https://omijs.github.io/home/assets/logo.svg" alt="omi" width="100"/></p> <h2 align="center">Omi - Web Components Framework</h2>

MIT
Latest version published 2 months ago

Package Health Score

79 / 100
Full package analysis