Module Ext_layout_ContextItem


module Ext_layout_ContextItem: sig .. end
This class manages state information for a compone ...

This class manages state information for a component or element during a layout.

Blocks

A "block" is a required value that is preventing further calculation. When a layout has encountered a situation where it cannot possibly calculate results, it can associate itself with the context item and missing property so that it will not be rescheduled until that property is set.

Blocks are a one-shot registration. Once the property changes, the block is removed.

Be careful with blocks. If any further calculations can be made, a block is not the right choice.

Triggers

Whenever any call to getProp, getDomProp, hasProp or hasDomProp is made, the current layout is automatically registered as being dependent on that property in the appropriate state. Any changes to the property will trigger the layout and it will be queued in the Ext.layout.Context.

Triggers, once added, remain for the entire layout. Any changes to the property will reschedule all unfinished layouts in their trigger set.



class type t = object .. end
class type configs = object .. end
class type events = object .. end
class type statics = object .. end
val of_configs : configs Js.t -> t Js.t
of_configs c casts a config object c to an instance of class t
val to_configs : t Js.t -> configs Js.t
to_configs o casts instance o of class t to a config object