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.

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;
    }