Skip to content

Instantly share code, notes, and snippets.

View goldenflower's full-sized avatar

Ghanshyam Singh goldenflower

View GitHub Profile
@goldenflower
goldenflower / .module
Created August 13, 2019 10:32
field-paragraph-condation
/**
* Implements hook_field_widget_WIDGET_TYPE_form_alter().
*/
function my_common_field_widget_entity_reference_paragraphs_form_alter(&$element, \Drupal\Core\Form\FormStateInterface $form_state, $context) {
/** @var \Drupal\field\Entity\FieldConfig $field_definition */
$field_definition = $context['items']->getFieldDefinition();
$paragraph_entity_reference_field_name = $field_definition->getName();
L.Micello.UploadManager= L.Class.extend({
options: {
id: '',
callback: '',
encapsulation: "",
format: ["csv"],
debug: false
},
initialize: function (element, options) {
this.element = element;
/* Task */
L.Micello.EntityPropertyManagement = L.Layer.extend({
options: {
},
initialize: function (taskControl) {
L.Util.setOptions(this, taskControl.options);
<!DOCTYPE html>
<html>
<head>
<title>Micello Map</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Core Leaflet Files -->
<script src="../../Leaflet/1.0.0/leaflet-src.js"></script>
L.Micello.UploadManager= L.Class.extend({
options: {
id: '',
callback: '',
backGroundColor : '#ffffff',
width : '600px',
height : '400px',
border : '1px solid #C8C8C8',
greyTextColor :'#D4D2D2',
blueTextColor : '#6FABE3'