trait PaginatedModelSnippet[T <: Mapper[T]] extends ModelSnippet[T]
Helper for when using paginators with a ModelSnippet. Adds a dispatch that delegates the "paginate" snippet to the paginator member.
- Alphabetic
- By Inheritance
- PaginatedModelSnippet
- ModelSnippet
- StatefulSnippet
- DispatchSnippet
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
ModelView
extends view.ModelView[T]
- Definition Classes
- ModelSnippet
-
type
DispatchIt = PartialFunction[String, (NodeSeq) ⇒ NodeSeq]
- Definition Classes
- DispatchSnippet
Abstract Value Members
-
abstract
def
edit(ns: NodeSeq): NodeSeq
The edit snippet
The edit snippet
- Definition Classes
- ModelSnippet
-
abstract
def
list(ns: NodeSeq): NodeSeq
The list snippet
The list snippet
- Definition Classes
- ModelSnippet
-
abstract
val
paginator: PaginatorSnippet[T]
The paginator to delegate to
-
abstract
val
view: view.ModelView[T]
The instance of ModelView that wraps the currently loaded entity
The instance of ModelView that wraps the currently loaded entity
- Definition Classes
- ModelSnippet
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addName(name: String): Unit
- Definition Classes
- StatefulSnippet
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
dispatch: DispatchIt
- Definition Classes
- PaginatedModelSnippet → ModelSnippet → DispatchSnippet
-
def
editAction(e: T): CssSel
A ".edit" CssSel
A ".edit" CssSel
- Definition Classes
- ModelSnippet
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
link(to: String, func: () ⇒ Any, body: NodeSeq, attrs: http.SHtml.ElemAttr*): Elem
create an anchor tag around a body
create an anchor tag around a body
- to
- the target
- func
- the function to invoke when the link is clicked
- body
- the NodeSeq to wrap in the anchor tag
- attrs
- the (optional) attributes for the HTML element
- Definition Classes
- StatefulSnippet
-
def
load(entity: T): Unit
- Definition Classes
- ModelSnippet
-
def
names: Set[String]
- Definition Classes
- StatefulSnippet
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
val
onSave: (view.ModelView[T]) ⇒ Unit
Action when save is successful.
Action when save is successful. Defaults to using the ModelView's redirectOnSave
- Definition Classes
- ModelSnippet
-
def
redirectTo(where: String): Nothing
Redirect to another page, but make sure this StatefulSnippet is registered on that page so the state continues on the new page
Redirect to another page, but make sure this StatefulSnippet is registered on that page so the state continues on the new page
- Definition Classes
- StatefulSnippet
-
def
registerThisSnippet(): Unit
- Definition Classes
- StatefulSnippet
-
def
removeAction(e: T): CssSel
A ".remove" CssSel
A ".remove" CssSel
- Definition Classes
- ModelSnippet
-
def
seeOther(where: String): Nothing
See Other to another page, but make sure this StatefulSnippet is registered on that page so the state continues on the new page
See Other to another page, but make sure this StatefulSnippet is registered on that page so the state continues on the new page
- Definition Classes
- StatefulSnippet
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unregisterThisSnippet(): Unit
- Definition Classes
- StatefulSnippet
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )