attached([attached], [floating_position])

Class: ToolBar.

Description:

Sets or gets boolean whether the toolbar is attached to main Window. Has no affect if not attached to a Window yet.

Parameters:

Name Type Description

[attached]

boolean

true to attach, false to detach from Window component the ToolBar is added to.

[floating_position]

Object

Position on screen where toolbar should float {x:number, y:number}.

Returns:

If no parameters were passed, current state is returned; otherwise this Toolbar component is returned for method chaining.

Type: boolean | ToolBar