Class JuiJSONEditorInput
JuiJSONEditorInput displays WYSWIG editor for JSON data. In terms of raw input field or input field for CModel instance
Encapsulates the JSON Editor plugin for jQuery (http://plugins.jquery.com/project/jsoneditor)
To use set JuiJSONEditorInput::$data
to the JSON string and CJuiInputWidget::$name
to field name, or
set CJuiInputWidget::$model
for CModel instance, and CJuiInputWidget::$attribute
to model
attribute
- CComponent
- CBaseController
- CWidget
- CJuiWidget
- CJuiInputWidget
- JuiJSONEditorInput
License: GNU LGPL 3.0
Author: Dariusz Górecki <darek.krk@gmail.com>
Version: 1.0
Located at phundament/p3extensions/widgets/jsonEditorView/JuiJSONEditorInput.php
Methods summary
public
|
|
public
|
|
public
|
Methods inherited from CJuiInputWidget
hasModel()
,
resolveNameID()
Methods inherited from CJuiWidget
registerCoreScripts()
,
registerScriptFile()
,
resolvePackagePath()
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
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
|
$data |
#
JSON contents for initial display, default empty object '{}' |
public
string
|
$rootNodeName |
#
name of the 'root' node in editor |
public
string
|
$inputButtonLabel |
#
label for input button, default: 'Switch to text input' |
public
string
|
$initButtonLabel |
#
label for init button, default: 'Switch to JSON editor' |
Properties inherited from CJuiInputWidget
$attribute
,
$model
,
$name
,
$value
Properties inherited from CJuiWidget
$htmlOptions
,
$options
,
$scriptFile
,
$scriptUrl
,
$theme
,
$themeUrl
Properties inherited from CWidget
$actionPrefix
,
$skin
Magic properties inherited from CWidget
$controller
,
$id
,
$owner
,
$viewPath