Class: SC.WebView
Extends
SC.Control, SC.View.
Used to display an iframe. The source, (specified by the value property) of
the iFrame should be from the same domain. (i.e. the src / value should be
from the same domain) if you want to access the contents of the iframe.
Defined in: web.js
- Since:
- SproutCore 1.0
Field Summary
- Fields borrowed from SC.View:
- acceptsFirstResponder, acceptsMultitouch, ariaHidden, ariaRole, attributeBindings, autoMixins, backgroundColor, childViewLayout, childViewLayoutOptions, childViews, childViewsNeedLayout, classNameBindings, classNames, concatenatedProperties, createdByParent, designMode, enabledState, firstKeyView, hasLayout, hasTouch, hasVisibility, isBuildingIn, isBuildingOut, isChildViewLayoutLive, isEnabled, isFixedHeight, isFixedPosition, isFixedSize, isFixedWidth, isKeyResponder, isTextSelectable, isView, isVisible, lastKeyView, layerLocationNeedsUpdate, layerNeedsUpdate, layout, modeAdjust, nextKeyView, page, pane, parentView, previousKeyView, renderDelegateName, shouldInheritCursor, shouldInheritEnabled, tagName, themeName, toolTip, touchBoundary, transitionAdjust, transitionAdjustOptions, transitionHide, transitionHideOptions, transitionIn, transitionInOptions, transitionOut, transitionOutOptions, transitionShow, transitionShowOptions, useStaticLayout
- Fields borrowed from SC.Responder:
- hasFirstResponder, isFirstResponder, responderContext
- Fields borrowed from SC.Object:
- isDestroyed, isObject, nextProperty, object, property, target, toInvalidate
- Fields borrowed from SC.Observable:
- isObservable
- Fields borrowed from SC.Control:
- controlSize, errorLabel, fieldKey, fieldLabel, isActive, isControl, isSelected
Instance Methods
- didCreateLayer()
- render(context, firstTime)
- row(optionalClass, properties, rowExt)
- setup()
- teardown()
- update()
- willDestroyLayer()
Field Detail
displayProperties Array- Default value:
- ['value', 'shouldAutoResize']
- See:
- SC.View#displayProperties
The content of the iframe can be bigger than the size specified when creating
the view. If you want the view to be auto-resized to the dimensions of the
iframe, then set the value of this property to YES.
The web view can be auto resized only if the contents are from the same
domain as the parent domain.
- Default value:
- NO
Instance Method Detail
- Parameters:
- context SC.RenderContext
- firstTime Boolean
Creates a form row.
Can be called in two ways: row(optionalClass, properties), which creates
a field with the properties, and puts it in a new row;
and row(properties), which creates a new row—and it is up to you to add
any fields you want in the row.
You can also supply some properties to extend the row itself with.
Defined in: form.js.
- Parameters:
- optionalClass
- properties
- rowExt
Defined in: ui.js.
Defined in: ui.js.
Defined in: form.js.
