showExternalParameter -> showExternalParam

This commit is contained in:
Samuel Georges 2014-12-16 15:16:31 +11:00
parent e7fc3b5d5c
commit a03d0cc8b4
2 changed files with 5 additions and 5 deletions

View File

@ -29,7 +29,7 @@
* - placeholder - placholder text, for text and dropdown properties
* - depends - a list of properties the property depend on, for dropdown lists
* - options - an option list for dropdown lists, optional. If not provided the options are loaded with AJAX.
* - showExternalParameter - specifies the visibility of the external parameter feature for the property. Default: true.
* - showExternalParam - specifies the visibility of the external parameter feature for the property. Default: true.
* Example of the configuration string (a single property):
* [{"property":"max-width","title":"Max width","type":"string"}]
*
@ -39,7 +39,7 @@
*
* Any HTML element that wraps the inspectable element can have the data-inspector-external-parameters property that enables the external
* parameters support. External parameters saved with the special syntax {{ paramName }}. The external parameter feature can be toggled
* on per-property basis with the showExternalParameter option, visible by default.
* on per-property basis with the showExternalParam option, visible by default.
*
* Events
* - change - the event is triggered on the inspectable element when it's properties are updated.
@ -161,7 +161,7 @@
if (this.itemType == 'property' && this.groupIndex !== undefined)
result += self.groupExpanded(this.group) ? ' expanded' : ' collapsed'
if (this.itemType == 'property' && !this.showExternalParameter)
if (this.itemType == 'property' && !this.showExternalParam)
result += ' no-external-parameter'
return result

View File

@ -26,7 +26,7 @@ class ComponentHelpers
'type' => 'string',
'validationPattern' => '^[a-zA-Z]+[0-9a-z\_]*$',
'validationMessage' => Lang::get('cms::lang.component.validation_message'),
'showExternalParameter' => false
'showExternalParam' => false
];
$result[] = $property;
@ -36,7 +36,7 @@ class ComponentHelpers
'property' => $name,
'title' => array_get($params, 'title', $name),
'type' => array_get($params, 'type', 'string'),
'showExternalParameter' => array_get($params, 'showExternalParameter', true)
'showExternalParam' => array_get($params, 'showExternalParam', true)
];
foreach ($params as $name => $value) {