Class

korolev.Effects

Access

Related Doc: package Effects

Permalink

abstract class Access[F[+_], S, M] extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Access
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Access()(implicit arg0: Async[F])

    Permalink

Abstract Value Members

  1. abstract def downloadFormData(id: ElementId): FormDataDownloader[F, S]

    Permalink

    Downloads form from client

    Downloads form from client

    eventWithAccess('submit) { access =>
      access
        .downloadFormData(myForm)
        .onProgress { (loaded, total) =>
          // transition …
        }
        .start
        .map { formData =>
          val picture = data.file("picture") // Array[Byte]
          val title = data.text("title") // String
          // transition ...
        }
    }
    id

    form elementId

  2. abstract def property[T](id: ElementId): PropertyHandler[F, T]

    Permalink
  3. abstract def property[T](id: ElementId, propName: Symbol): F[T]

    Permalink

    Extracts property of element from client-side DOM.

    Extracts property of element from client-side DOM.

    propName

    Name of property. 'value for example

    Example:
    1. eventWithAccess('click) { access =>
        deferredTransition {
          for {
            request <- access.property[String]('value, searchField)
            result <- searchModel.search(request)
          } yield {
            transition {
              case state: State.Awesome =>
                state.copy(list = searchResult)
            }
          }
        }
      }
    See also

    Effects.elementId

  4. abstract def publish(message: M): F[Unit]

    Permalink

    Publish message to environment

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped