Interface AnchorScrollService


@JsType(isNative=true, name="ng.AnchorScrollService", namespace="<global>") public interface AnchorScrollService
Public AngularTS AnchorScrollService contract exposed through the global ng namespace for Closure-annotated applications.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    call(double hashOrElement)
    Invokes the callable AnchorScrollService contract.
    default void
    call(elemental2.dom.HTMLElement hashOrElement)
    Invokes the callable AnchorScrollService contract.
    default void
    call(String hashOrElement)
    Invokes the callable AnchorScrollService contract.
    void
    Invokes the callable AnchorScrollService contract.
    Vertical scroll offset.
    void
    setYOffset(Object yOffset)
    Vertical scroll offset.
  • Method Details

    • call

      Invokes the callable AnchorScrollService contract.
      Parameters:
      hashOrElement - Value supplied for the hashOrElement parameter.
    • call

      @JsOverlay default void call(elemental2.dom.HTMLElement hashOrElement)
      Invokes the callable AnchorScrollService contract.
      Parameters:
      hashOrElement - Value supplied for the hashOrElement parameter.
    • call

      @JsOverlay default void call(String hashOrElement)
      Invokes the callable AnchorScrollService contract.
      Parameters:
      hashOrElement - Value supplied for the hashOrElement parameter.
    • call

      @JsOverlay default void call(double hashOrElement)
      Invokes the callable AnchorScrollService contract.
      Parameters:
      hashOrElement - Value supplied for the hashOrElement parameter.
    • getYOffset

      @JsProperty Object getYOffset()
      Vertical scroll offset. Can be a number, a function returning a number, or an Element whose offsetTop will be used.
    • setYOffset

      @JsProperty void setYOffset(Object yOffset)
      Vertical scroll offset. Can be a number, a function returning a number, or an Element whose offsetTop will be used.