<basefocusview>
an base class for the focus indicator

JavaScript: lz.basefocusview
extends <view> » <node> » lz.Eventable »

A base class that receives events from the focus manager, automatically showing, hiding and sizing to the focused view. See focusoverlay for a concrete example.

Attributes

Name Type (tag) Type (js) Default Category
active expression any false readonly
  true during keyboard navigation, when this view is visible
duration expression any 400 read/write
  the duration of the animation from one focused view to the next
target expression any null read/write
  a reference to the view that is currently focused

Methods

doFocus()
basefocusview.doFocus(v : lz.view);
This method is called when the focus is about to change to a new view
Parameter Name Type Description
v lz.view The view that has received the focus

followHeight()
basefocusview.followHeight(ignore);
keeps the height of the focusview in sync with its target
Parameter Name Type Description
ignore    

followWidth()
basefocusview.followWidth(ignore);
keeps the width of the focusview in sync with its target
Parameter Name Type Description
ignore    

followXY()
basefocusview.followXY(ignore);
keeps the position of the focusview in sync with its target
Parameter Name Type Description
ignore    

reset()
basefocusview.reset();
This method called when no view is focused.

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy