Home Reference Source
public class | source

MediaResize

Extends:

react~React.ComponentBaseView → MediaResize

MediaResize component handles the draggable resizing of media blocks. This does not update media block meta, but sends the data to a callback.

Constructor Summary

Public Constructor
public

constructor(props: *)

Member Summary

Public Members
public
public

state: *

Method Summary

Public Methods
public

Set initial width and height if provided by properties

public
public

handleResize(e: *, data: *)

Handle resize event.

public

render(): *

public

Callback to set initial size if not set.

Inherited Summary

From class BaseView
public

Public Constructors

public constructor(props: *) source

Params:

NameTypeAttributeDescription
props *

Public Members

public displayName: string source

public state: * source

Public Methods

public componentWillMount() source

Set initial width and height if provided by properties

public handleFinish() source

public handleResize(e: *, data: *) source

Handle resize event. Updates the height and width.

Also calls onResize prop if provided

Params:

NameTypeAttributeDescription
e *
data *

public render(): * source

Return:

*

public setSize() source

Callback to set initial size if not set.

See: