mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-29 03:24:37 +01:00
Use TL_CSS_UNITS for with and height option (#59).
This commit is contained in:
@@ -49,7 +49,7 @@ $GLOBALS['TL_DCA']['tl_content']['fields']['leaflet_mapId'] = [
|
|||||||
$GLOBALS['TL_DCA']['tl_content']['fields']['leaflet_width'] = [
|
$GLOBALS['TL_DCA']['tl_content']['fields']['leaflet_width'] = [
|
||||||
'label' => &$GLOBALS['TL_LANG']['tl_content']['leaflet_width'],
|
'label' => &$GLOBALS['TL_LANG']['tl_content']['leaflet_width'],
|
||||||
'inputType' => 'inputUnit',
|
'inputType' => 'inputUnit',
|
||||||
'options' => ['px', '%', 'em', 'pt', 'pc', 'in', 'cm', 'mm'],
|
'options' => $GLOBALS['TL_CSS_UNITS'],
|
||||||
'search' => false,
|
'search' => false,
|
||||||
'exclude' => true,
|
'exclude' => true,
|
||||||
'eval' => ['rgxp' => 'digit', 'tl_class' => 'clr w50'],
|
'eval' => ['rgxp' => 'digit', 'tl_class' => 'clr w50'],
|
||||||
@@ -60,7 +60,7 @@ $GLOBALS['TL_DCA']['tl_content']['fields']['leaflet_width'] = [
|
|||||||
$GLOBALS['TL_DCA']['tl_content']['fields']['leaflet_height'] = [
|
$GLOBALS['TL_DCA']['tl_content']['fields']['leaflet_height'] = [
|
||||||
'label' => &$GLOBALS['TL_LANG']['tl_content']['leaflet_height'],
|
'label' => &$GLOBALS['TL_LANG']['tl_content']['leaflet_height'],
|
||||||
'inputType' => 'inputUnit',
|
'inputType' => 'inputUnit',
|
||||||
'options' => ['px', '%', 'em', 'pt', 'pc', 'in', 'cm', 'mm'],
|
'options' => $GLOBALS['TL_CSS_UNITS'],
|
||||||
'search' => false,
|
'search' => false,
|
||||||
'exclude' => true,
|
'exclude' => true,
|
||||||
'eval' => ['rgxp' => 'digit', 'tl_class' => 'w50'],
|
'eval' => ['rgxp' => 'digit', 'tl_class' => 'w50'],
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ $GLOBALS['TL_DCA']['tl_module']['fields']['leaflet_mapId'] = [
|
|||||||
$GLOBALS['TL_DCA']['tl_module']['fields']['leaflet_width'] = [
|
$GLOBALS['TL_DCA']['tl_module']['fields']['leaflet_width'] = [
|
||||||
'label' => &$GLOBALS['TL_LANG']['tl_module']['leaflet_width'],
|
'label' => &$GLOBALS['TL_LANG']['tl_module']['leaflet_width'],
|
||||||
'inputType' => 'inputUnit',
|
'inputType' => 'inputUnit',
|
||||||
'options' => ['px', '%', 'em', 'pt', 'pc', 'in', 'cm', 'mm'],
|
'options' => $GLOBALS['TL_CSS_UNITS'],
|
||||||
'search' => false,
|
'search' => false,
|
||||||
'exclude' => true,
|
'exclude' => true,
|
||||||
'eval' => ['rgxp' => 'digit', 'tl_class' => 'clr w50'],
|
'eval' => ['rgxp' => 'digit', 'tl_class' => 'clr w50'],
|
||||||
@@ -60,7 +60,7 @@ $GLOBALS['TL_DCA']['tl_module']['fields']['leaflet_width'] = [
|
|||||||
$GLOBALS['TL_DCA']['tl_module']['fields']['leaflet_height'] = [
|
$GLOBALS['TL_DCA']['tl_module']['fields']['leaflet_height'] = [
|
||||||
'label' => &$GLOBALS['TL_LANG']['tl_module']['leaflet_height'],
|
'label' => &$GLOBALS['TL_LANG']['tl_module']['leaflet_height'],
|
||||||
'inputType' => 'inputUnit',
|
'inputType' => 'inputUnit',
|
||||||
'options' => ['px', '%', 'em', 'pt', 'pc', 'in', 'cm', 'mm'],
|
'options' => $GLOBALS['TL_CSS_UNITS'],
|
||||||
'search' => false,
|
'search' => false,
|
||||||
'exclude' => true,
|
'exclude' => true,
|
||||||
'eval' => ['rgxp' => 'digit', 'tl_class' => 'w50'],
|
'eval' => ['rgxp' => 'digit', 'tl_class' => 'w50'],
|
||||||
|
|||||||
Reference in New Issue
Block a user