mixins/load =========== .. js:mixin:: LoadMixin() Mixin that provides load state functionality. .. js:attribute:: loading :type: Boolean Is *true* if any loading (not necessarly the inital loading) is still in process. Setting its value is the same as calling setLoading with this value. .. js:function:: setLoading(loading[, delay[, setter]]) In-/Decreses the internal loading counter. May be overloaded to visually represent the loading process. :param Bool loading: A logical *true* value will increase the loading count, anything else will decrease it. :param Number|null delay: An optional delay to use for calling the setter. :param Function setter: A function to update the visual loading state. This parameter only to be used by the views extending the :js:class:`BaseView`. :emits loadingDone: When the internal loading counter has reach 0 again. .. js:attribute:: loaded read-only :type: bool Is *true* if the initial loading has finished. .. note:: Is to be overidden. .. js:function:: load(callback) This function is expected to start the inital loading process. .. note:: Is to be overidden. :callback Error|null err: A possible error. :emits loaded: Once loading has finished after the callback was called.