$container.
nosOnShow
([method[, options[, ...]]])¶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: |
|
---|
nosOnShow.
show
()¶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');
nosOnShow.
one
(callback)¶Binds a callback function which will be called only the one time (at the first display).
Arguments: |
|
---|
$(element).nosOnShow('one', function() {
$(this).widget();
});
nosOnShow.
bind
(callback)¶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.
});