Class JSONEditorView
JSONEditorView displays WYSWIG editor for JSON data.
Encapsulates the JSON Editor plugin for jQuery (http://plugins.jquery.com/project/jsoneditor)
To use set JSONEditorView::$data
to the JSON string
- CComponent
- CBaseController
- CWidget
- JSONEditorView
License: GNU LGPL 3.0
Author: Dariusz Górecki <darek.krk@gmail.com>
Version: 1.0.1
Located at phundament/p3extensions/widgets/jsonEditorView/JSONEditorView.php
Methods summary
public
|
|
public
|
Methods inherited from CWidget
__construct()
,
actions()
,
getController()
,
getId()
,
getOwner()
,
getViewFile()
,
getViewPath()
,
render()
,
setId()
Methods inherited from CBaseController
beginCache()
,
beginClip()
,
beginContent()
,
beginWidget()
,
createWidget()
,
endCache()
,
endClip()
,
endContent()
,
endWidget()
,
renderFile()
,
renderInternal()
,
widget()
Methods inherited from CComponent
__call()
,
__get()
,
__isset()
,
__set()
,
__unset()
,
asa()
,
attachBehavior()
,
attachBehaviors()
,
attachEventHandler()
,
canGetProperty()
,
canSetProperty()
,
detachBehavior()
,
detachBehaviors()
,
detachEventHandler()
,
disableBehavior()
,
disableBehaviors()
,
enableBehavior()
,
enableBehaviors()
,
evaluateExpression()
,
getEventHandlers()
,
hasEvent()
,
hasEventHandler()
,
hasProperty()
,
raiseEvent()
Magic methods summary
Properties summary
public
array
|
$htmlOptions |
#
additional HTML attributes that will be rendered in the DIV tag. |
public
string
|
$rootNodeName |
#
name of the 'root' node in editor |
public
string
|
$data |
#
JSON contents for initial display, default empty object '{}' |
public
mixed
|
$cssFile |
#
the CSS file used for the widget. Defaults to null, meaning using the default CSS file included together with the widget. If false, no CSS file will be used. Otherwise, the specified CSS file will be included when using this widget. |
public
string
|
$inputButtonLabel |
#
label for input button, default: 'Switch to text input' |
public
string
|
$initButtonLabel |
#
label for init button, default: 'Switch to JSON editor' |
public
string
|
$submitButtonLabel |
#
label for submit button, default: 'Save' |
Properties inherited from CWidget
$actionPrefix
,
$skin
Magic properties inherited from CWidget
$controller
,
$id
,
$owner
,
$viewPath