Interface IHCOnDocumentReadyProvider

  • All Known Implementing Classes:
    DefaultHCOnDocumentReadyProvider
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IHCOnDocumentReadyProvider
    An interface to create the "on document ready" deferred code.
    Author:
    Philip Helger
    • Method Detail

      • createOnDocumentReady

        @Nonnull
        IHasJSCode createOnDocumentReady​(@Nonnull
                                         IHasJSCode aJSCodeProvider)
        Create "on document ready" JS code. When e.g. using JQuery this could return $(document).ready (function() {JSCode});
        Parameters:
        aJSCodeProvider - The code to be executed when the HTML document is ready.
        Returns:
        The created code.