Class s7sdk.event.ResizeEvent
Dispatched when a component or window changes its size. For example, the Container component
dispatches a ResizeEvent event when the window changes its size due to window size change or orientation change. In addition, the Container component
dispatches this event when entering or leaving full screen mode, also when component is added to or removed from the web page layout.
An event handler can access the ResizeEvent object by reading the s7event property from the DOM event.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
s7sdk.event.ResizeEvent(type, w, h, bubbles)
|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
s7sdk.event.ResizeEvent.ADDED_TO_LAYOUT
Defines the value of the
type property for a addedToLayout event object. |
| <static> |
s7sdk.event.ResizeEvent.COMPONENT_RESIZE
Defines the value of the
type property for a componentResize event object. |
| <static> |
s7sdk.event.ResizeEvent.FULLSCREEN_RESIZE
Defines the value of the
type property for a fullScreenResize event object. |
| <static> |
s7sdk.event.ResizeEvent.REMOVED_FROM_LAYOUT
Defines the value of the
type property for a removedFromLayout event object. |
| <static> |
s7sdk.event.ResizeEvent.SIZE_MARKER_CHANGE
Defines the value of the
type property for a sizeMarkerChange event object. |
| <static> |
s7sdk.event.ResizeEvent.WINDOW_RESIZE
Defines the value of the
type property for a windowResize event object. |
Class Detail
s7sdk.event.ResizeEvent(type, w, h, bubbles)
- Parameters:
- {String} type
- Defines the value of the type property.
- {String} w
- New width.
- {Number} h
- New height.
- {Boolean} bubbles
- Defines whether the event should bubble.
Field Detail
<static>
s7sdk.event.ResizeEvent.ADDED_TO_LAYOUT
Defines the value of the
type property for a addedToLayout event object.
<static>
s7sdk.event.ResizeEvent.COMPONENT_RESIZE
Defines the value of the
type property for a componentResize event object.
<static>
s7sdk.event.ResizeEvent.FULLSCREEN_RESIZE
Defines the value of the
type property for a fullScreenResize event object.
<static>
s7sdk.event.ResizeEvent.REMOVED_FROM_LAYOUT
Defines the value of the
type property for a removedFromLayout event object.
<static>
s7sdk.event.ResizeEvent.SIZE_MARKER_CHANGE
Defines the value of the
type property for a sizeMarkerChange event object.
<static>
s7sdk.event.ResizeEvent.WINDOW_RESIZE
Defines the value of the
type property for a windowResize event object.