mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
showExternalParameter -> showExternalParam
This commit is contained in:
parent
e7fc3b5d5c
commit
a03d0cc8b4
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user