We are working on a decoupled project with Drupal as our backend and Angular as our front-end. Everything is nearing completion but certain (dynamic, as in created in Drupal) pages require links to different pages of the angular app.  For example:...
Is there a way to add drupal behaviors to a theme without invoking jquery in Drupal 8?  This is what the tutorial show:  (function ($, Drupal) {   Drupal.behaviors.myModuleBehavior = {     attach: function (context, settings) {       $('input.myC...
I have a site on Drupal 8 and I update a block view with the following code :  (function ($, Drupal) {    'use strict';    setInterval(function() {     $('.region-navigation-logo .view-display-id-block_3').trigger('RefreshView'...
I have a Drupal 8 site with Bootstrap 3 theme.  I created a homepage with a newsfeed. Whenever there is a publication on the site, it generates a message in the newsfeed. The messages can have the status read or unread.  I want that when the .action-...
I am building a form in Drupal 8 that contains a sortable jQuery accordion.    I have the accordion working and am able to add new elements to the accordion utilizing a submit button with an AJAX callback.  However, when I reorder the elements in the...
I am creating standalone html/javascript application which should communicate with REST API of Drupal 8.6.2. My app uses Vue.js, so ajax requests are sent by Axios.  I want to be able to operate the app both on the same domain and via CORS from anoth...
I'm trying to modify some div's classes inside an iframe using my own css and change the Twitter Block | Drupal 8 look. But, I've faced a lot of error such as $ is not a function etc....I thought that my js was loaded too fast (before my...
I have done this but it still works like a ticker. Please help me out thanks in advance.  var owl = $('.simple'); owl.once('js-trigger').owlCarousel({     loop: true,     autoplay: true,     autoplayTimeout: 650,     autoplayHoverPaus...
I'm trying to refresh my View in Drupal 8 without reloading the page with this code :  (function ($, Drupal) {    'use strict';    setInterval(function() {     $('.view-message-activity-stream-timeline-public').trigger('Refres...
Is it possible to make a QuickEdit to work when fetching a view restfully and make quickedit to work of that response? I have AJAX call that displays taxonomy hooked to a view. The restfull response from the view:  [     {        "colors": &#...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.