public class AffixBehavior
extends org.apache.wicket.behavior.Behavior
AffixBehavior to the element you want to spy on.
Then use offsets to define when to toggle the pinning of an element on and off.
add(new AffixBehavior("100")); // or
add(new AffixBehavior("{x:100, y:50}")); // or
| Constructor and Description |
|---|
AffixBehavior(String offset)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(org.apache.wicket.Component component) |
AffixBehavior |
offset(String offset)
Pixels to offset from screen when calculating position of scroll.
|
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response) |
public AffixBehavior(String offset)
offset - when to toggle the pinning of an element on and offpublic AffixBehavior offset(String offset)
offset - when to toggle the pinning of an element on and offpublic void bind(org.apache.wicket.Component component)
bind in class org.apache.wicket.behavior.Behaviorpublic void renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response)
renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributorrenderHead in class org.apache.wicket.behavior.BehaviorCopyright © 2013 agilecoders.de. All Rights Reserved.