示例#1
0
 /**
  * @inheritdoc
  */
 public function createFieldConfig()
 {
     return FormFieldConfig::create();
 }
示例#2
0
echo json_encode($config);
?>
);
        <?php 
if (!empty($enabler)) {
    ?>
            var toggleVisibility = function ($enablerInput) {
                var val = $enablerInput[0].type === 'checkbox' ? $enablerInput[0].checked : $enablerInput.val().length > 0;
                if (val) {
                    $input.closest('.form-group').slideDown(100);
                } else {
                    $input.closest('.form-group').slideUp(100);
                }
            };
            var $enablerInput = $('#<?php 
    echo \PeskyCMF\Scaffold\Form\FormFieldConfig::makeDefaultId($enabler);
    ?>
');
            toggleVisibility($enablerInput);
            $enablerInput.on('change switchChange.bootstrapSwitch', function () {
                toggleVisibility($(this));
            });
        <?php 
}
?>
        $input.parent().find('.input-group-addon.cursor').on('click', function () {
            $input.data("DateTimePicker").show();
        });
    }, 50);
</script>
示例#3
0
 /**
  * @inheritdoc
  */
 public static function createFieldConfig($fieldName)
 {
     return FormFieldConfig::create();
 }