Special API which delays the rendering of UI elements when they become visible. A lot of UI elements don’t initialise correctly when they are hidden (they can’t calculate sizes properly).
This is a function with sub-functions.
Arguments: |
|
---|
Triggers all functions bounded with nosOnShow.bind() for any children of $container.
Warning
You have to actually show the element before calling this function.
$(domContext).show().nosOnShow();
// Or
$(domContext).show().nosOnShow('show');
Binds a callback function which will be called only the one time (at the first display).
Arguments: |
|
---|
$(element).nosOnShow('one', function() {
$(this).widget();
});
Binds a callback function which will be called each time that the element becomes visible.
Arguments: |
|
---|
$(element).nosOnShow('bind', function() {
$(this).widgetRefresh(); // widgetRefresh don't exist, it's an example.
});