Namespace: behaviors

Drupal. behaviors

Holds all initialization methods.

Members

Append is-active class.

The link is only active if its path corresponds to the current path, the language of the linked path is equal to the current language, and if the query parameters of the link equal those of the current request, since the same request with different query parameters may yield a different page (e.g. pagers, exposed View filters).

Does not discriminate based on element type, so allows you to set the is-active class on any element: a, li…

staticDrupal.behaviors.addItemFormDrupal~behavior

Adds functionality for the add item form.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the functionality in Drupal.viewsUi.AddItemForm to the forms in question.

staticDrupal.behaviors.AJAXDrupal~behavior

Attaches the Ajax behavior to each Ajax form element.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Initialize all Drupal.Ajax objects declared in drupalSettings.ajax or initialize Drupal.Ajax objects from DOM elements having the use-ajax-submit or use-ajax css class.

detach Drupal~behaviorDetach

During unload remove all Drupal.Ajax objects related to the removed content.

staticDrupal.behaviors.autocompleteDrupal~behavior

Attaches the autocomplete behavior to all required fields.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the autocomplete behaviors.

detach Drupal~behaviorDetach

Detaches the autocomplete behaviors.

staticDrupal.behaviors.batchDrupal~behavior

Attaches the batch behavior to progress bars.

staticDrupal.behaviors.blockContentDetailsSummariesDrupal~behavior

Sets summaries about revision and translation of block content.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches summary behaviour block content form tabs.

Specifically, it updates summaries to the revision information and the translation options.

staticDrupal.behaviors.blockDragDrupal~behavior

Move a block in the blocks table between regions via select list.

This behavior is dependent on the tableDrag behavior, since it uses the objects initialized in that behavior to update the row.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the tableDrag behaviour for blocks in block administration.

staticDrupal.behaviors.blockFilterByTextDrupal~behavior

Filters the block list by a text input search string.

The text input will have the selector input.block-filter-text.

The target element to do searching in will be in the selector input.block-filter-text[data-element]

The text source where the text should be found will have the selector .block-filter-text-source

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the behavior for the block filtering.

staticDrupal.behaviors.blockHighlightPlacementDrupal~behavior

Highlights the block that was just placed into the block listing.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the behavior for the block placement highlighting.

staticDrupal.behaviors.blockSettingsSummaryDrupal~behavior

Provide the summary information for the block settings vertical tabs.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the behavior for the block settings summaries.

staticDrupal.behaviors.bookDetailsSummariesDrupal~behavior

Adds summaries to the book outline form.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches summary behavior to book outline forms.

staticDrupal.behaviors.ckeditorAdminDrupal~behavior

Sets config behaviour and creates config views for the CKEditor toolbar.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches admin behaviour to the CKEditor buttons.

detach Drupal~behaviorDetach

Detaches admin behaviour from the CKEditor buttons on 'unload'.

staticDrupal.behaviors.ckeditorAdminButtonPluginSettingsDrupal~behavior

Automatically shows/hides settings of buttons-only CKEditor plugins.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches show/hide behaviour to Plugin Settings buttons.

staticDrupal.behaviors.ckeditorDrupalImageSettingsSummaryDrupal~behavior

Provides the summary for the "drupalimage" plugin settings vertical tab.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches summary behaviour to the "drupalimage" settings vertical tab.

staticDrupal.behaviors.ckeditorLanguageSettingsSummary

Provides the summary for the "language" plugin settings vertical tab.

staticDrupal.behaviors.ckeditorStylesComboSettingsDrupal~behavior

Ensures that the "stylescombo" button's metadata remains up-to-date.

Triggers the CKEditorPluginSettingsChanged event whenever the "stylescombo" plugin settings change, to ensure that the corresponding feature metadata is immediately updated — i.e. ensure that HTML tags and classes entered here are known to be "required", which may affect filter settings.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches admin behaviour to the "stylescombo" button.

staticDrupal.behaviors.ckeditorStylesComboSettingsSummaryDrupal~behavior

Provides the summary for the "stylescombo" plugin settings vertical tab.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches summary behaviour to the plugin settings vertical tab.

staticDrupal.behaviors.collapseDrupal~behavior

Polyfill HTML5 details element.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches behavior for the details element.

staticDrupal.behaviors.colorDrupal~behavior

Displays farbtastic color selector and initialize color administration UI.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attach color selection behavior to relevant context.

staticDrupal.behaviors.commentByViewerDrupal~behavior

Add 'by-viewer' class to comments written by the current user.

staticDrupal.behaviors.commentFieldsetSummariesDrupal~behavior

staticDrupal.behaviors.commentNewIndicatorDrupal~behavior

Renders "new" comment indicators wherever necessary.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches "new" comment indicators behavior.

staticDrupal.behaviors.contentTranslationDrupal~behavior

Makes field translatability inherit bundle translatability.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches content translation behavior.

staticDrupal.behaviors.contentTranslationDependentOptionsDrupal~behavior

Forces applicable options to be checked as translatable.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches content translation dependent options to the UI.

staticDrupal.behaviors.contentTypesDrupal~behavior

Behaviors for setting summaries on content type form.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches summary behaviors on content type edit forms.

staticDrupal.behaviors.contextualDrupal~behavior

Attaches outline behavior for regions associated with contextual links.

Events Contextual triggers an event that can be used by other scripts.

  • drupalContextualLinkAdded: Triggered when a contextual link is added.
Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the outline behavior to the right context.

staticDrupal.behaviors.contextualToolbarDrupal~behavior

Attaches contextual's edit toolbar tab behavior.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches contextual toolbar behavior on a contextualToolbar-init event.

staticDrupal.behaviors.copyFieldValueDrupal~behavior

Attaches field copy behavior from input fields to other input fields.

When a field is filled out, apply its value to other fields that will likely use the same value. In the installer this is used to populate the administrator email address with the same value as the site email address.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the field copy behavior to an input field.

staticDrupal.behaviors.dateDrupal~behavior

Attach datepicker fallback on date elements.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the behavior. Accepts in settings.date an object listing elements to process, keyed by the HTML ID of the form element containing the human-readable value. Each element is an datepicker settings object.

detach Drupal~behaviorDetach

Detach the behavior destroying datepickers on effected elements.

staticDrupal.behaviors.dateFormatDrupal~behavior

Display the preview for date format entered.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attach behavior for previewing date formats on input elements.

staticDrupal.behaviors.detailsAriaDrupal~behavior

Handles aria-expanded and aria-pressed attributes on details elements.

staticDrupal.behaviors.dialogDrupal~behavior

Initialize dialogs for Ajax purposes.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the behaviors for dialog ajax functionality.

staticDrupal.behaviors.dropButtonDrupal~behavior

Process elements with the .dropbutton class on page load.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches dropButton behaviors.

staticDrupal.behaviors.drupalAnnounceDrupal~behavior

Builds a div element with the aria-live attribute and add it to the DOM.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the behavior for drupalAnnouce.

staticDrupal.behaviors.drupalDisplaceDrupal~behavior

Registers a resize handler on the window.

staticDrupal.behaviors.editorDrupal~behavior

Enables editors on text_format elements.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches an editor to an input element.

detach Drupal~behaviorDetach

Detaches an editor from an input element.

staticDrupal.behaviors.escapeAdminDrupal~behavior

Replaces the "Home" link with "Back to site" link.

Back to site link points to the last non-administrative page the user visited within the same browser tab.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the replacement functionality to the toolbar-escape-admin element.

staticDrupal.behaviors.fieldUIDisplayOverviewDrupal~behavior

Attaches the fieldUIOverview behavior.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the fieldUIOverview behavior.

See:

staticDrupal.behaviors.fieldUIFieldStorageAddFormDrupal~behavior

Properties:
Name Type Description
attach Drupal~behaviorAttach

Adds behaviors to the field storage add form.

staticDrupal.behaviors.fileAutoUploadDrupal~behavior

Attach behaviors to file element auto upload.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches triggers for the upload button.

detach Drupal~behaviorDetach

Detaches auto file upload trigger.

staticDrupal.behaviors.fileButtonsDrupal~behavior

Attach behaviors to the file upload and remove buttons.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches form submit events.

detach Drupal~behaviorDetach

Detaches form submit events.

Attach behaviors to links within managed file elements for preview windows.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches triggers.

detach Drupal~behaviorDetach

Detaches triggers.

staticDrupal.behaviors.fileValidateAutoAttachDrupal~behavior

Attach behaviors to the file fields passed in the settings.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches validation for file extensions.

detach Drupal~behaviorDetach

Detaches validation for file extensions.

staticDrupal.behaviors.fillUserInfoFromBrowserDrupal~behavior

Prepopulate form fields with information from the visitor browser.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the behavior for filling user info from browser.

staticDrupal.behaviors.filterFilterHtmlUpdatingDrupal~behavior

Displays and updates what HTML tags are allowed to use in a filter.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches behavior for updating allowed HTML tags.

TODO
  • Remove everything but 'attach' and 'detach' and make a proper object.

staticDrupal.behaviors.filterGuidelinesDrupal~behavior

Displays the guidelines of the selected text format automatically.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches behavior for updating filter guidelines.

staticDrupal.behaviors.filterStatusDrupal~behavior

Displays and updates the status of filters on the admin page.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches behaviors to the filter admin view.

staticDrupal.behaviors.formSingleSubmitDrupal~behavior

Prevents consecutive form submissions of identical form values.

Repetitive form submissions that would submit the identical form values are prevented, unless the form values are different to the previously submitted values.

This is a simplified re-implementation of a user-agent behavior that should be natively supported by major web browsers, but at this time, only Firefox has a built-in protection.

A form value-based approach ensures that the constraint is triggered for consecutive, identical form submissions only. Compared to that, a form button-based approach would (1) rely on [visible] buttons to exist where technically not required and (2) require more complex state management if there are multiple buttons in a form.

This implementation is based on form-level submit events only and relies on jQuery's serialize() method to determine submitted form values. As such, the following limitations exist:

  • Event handlers on form buttons that preventDefault() do not receive a double-submit protection. That is deemed to be fine, since such button events typically trigger reversible client-side or server-side operations that are local to the context of a form only.
  • Changed values in advanced form controls, such as file inputs, are not part of the form values being compared between consecutive form submits (due to limitations of jQuery.serialize()). That is deemed to be acceptable, because if the user forgot to attach a file, then the size of HTTP payload will most likely be small enough to be fully passed to the server endpoint within (milli)seconds. If a user mistakenly attached a wrong file and is technically versed enough to cancel the form submission (and HTTP payload) in order to attach a different file, then that edge-case is not supported here.

Lastly, all forms submitted via HTTP GET are idempotent by definition of HTTP standards, so excluded in this implementation.

staticDrupal.behaviors.formUpdatedDrupal~behavior

Triggers the 'formUpdated' event on form elements when they are modified.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches formUpdated behaviors.

detach Drupal~behaviorDetach

Detaches formUpdated behaviors.

staticDrupal.behaviors.hideUpdateInformationDrupal~behavior

Show/hide the description details on Available translation updates page.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches behavior for toggling details on the translation update page.

staticDrupal.behaviors.importLanguageCodeSelectorDrupal~behavior

Select the language code of an imported file based on its filename.

This only works if the file name ends with "LANGCODE.po".

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches behavior for preselecting language code based on filename.

staticDrupal.behaviors.initializeFilterConfigurationDrupal~behavior

Properties:
Name Type Description
attach Drupal~behaviorAttach

Gets filter configuration from filter form input.

staticDrupal.behaviors.livePreviewDrupal~behavior

Trigger preview when the "live preview" checkbox is checked.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches behavior to trigger live preview if the live preview option is checked.

staticDrupal.behaviors.localeDatepickerDrupal~behavior

Attaches language support to the jQuery UI datepicker component.

staticDrupal.behaviors.localeTranslateDirtyDrupal~behavior

Marks changes of translations.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches behavior to show the user if translations has changed.

detach Drupal~behaviorDetach

Detach behavior to show the user if translations has changed.

staticDrupal.behaviors.machineNameDrupal~behavior

Attach the machine-readable name form element behavior.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches machine-name behaviors.

staticDrupal.behaviors.menuUiChangeParentItemsDrupal~behavior

staticDrupal.behaviors.menuUiDetailsSummariesDrupal~behavior

Set a summary on the menu link form.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Find the form and call drupalSetSummary on it.

staticDrupal.behaviors.menuUiLinkAutomaticTitleDrupal~behavior

Automatically fill in a menu link title, if possible.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches change and keyup behavior for automatically filling out menu link titles.

staticDrupal.behaviors.negotiationLanguageDrupal~behavior

Makes language negotiation inherit user interface negotiation.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attach behavior to language negotiation admin user interface.

staticDrupal.behaviors.nodeDetailsSummariesDrupal~behavior

Behaviors for tabs in the node edit form.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches summary behavior for tabs in the node edit form.

Render "X new comments" links wherever necessary.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches new comment links behavior.

Disables all non-relevant links in node previews.

Destroys links (except local fragment identifiers such as href="#frag") in node previews to prevent users from leaving the page.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches confirmation prompt for clicking links in node preview mode.

detach Drupal~behaviorDetach

Detaches confirmation prompt for clicking links in node preview mode.

staticDrupal.behaviors.nodePreviewSwitchViewModeDrupal~behavior

Switch view mode.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches automatic submit on formUpdated.preview events.

staticDrupal.behaviors.passwordDrupal~behavior

Attach handlers to evaluate the strength of any password fields and to check that its confirmation is correct.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches password strength indicator and other relevant validation to password fields.

staticDrupal.behaviors.pathDetailsSummariesDrupal~behavior

Behaviors for settings summaries on path edit forms.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches summary behavior on path edit forms.

staticDrupal.behaviors.permissionsDrupal~behavior

Shows checked and disabled checkboxes for inherited permissions.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches functionality to the permissions table.

staticDrupal.behaviors.quickeditDrupal~behavior

staticDrupal.behaviors.responsiveImageAJAX

Call picturefill so newly added responsive images are processed.

staticDrupal.behaviors.setTimezoneDrupal~behavior

Set the client's system time zone as default values of form fields.

staticDrupal.behaviors.simpleTestGroupCollapseDrupal~behavior

Collapses table rows followed by group rows on the test listing page.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attach collapse behavior on the test listing page.

staticDrupal.behaviors.simpleTestSelectAllDrupal~behavior

Toggles test checkboxes to match the group checkbox.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches behavior for selecting all tests in a group.

staticDrupal.behaviors.simpletestTableFilterByTextDrupal~behavior

Filters the test list table by a text input search string.

Text search input: input.table-filter-text Target table: input.table-filter-text[data-table] Source text: .table-filter-text-source

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the filter behavior to the text input element.

staticDrupal.behaviors.statesDrupal~behavior

Attaches the states.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches states behaviors.

staticDrupal.behaviors.syncPreviewDisplayDrupal~behavior

Sync preview display.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches behavior to sync the preview display when needed.

staticDrupal.behaviors.tableDragDrupal~behavior

Drag and drop table rows with field manipulation.

Using the drupal_attach_tabledrag() function, any table with weights or parent relationships may be made into draggable tables. Columns containing a field may optionally be hidden, providing a better user experience.

Created tableDrag instances may be modified with custom behaviors by overriding the .onDrag, .onDrop, .row.onSwap, and .row.onIndent methods. See blocks.js for an example of adding additional functionality to tableDrag.

staticDrupal.behaviors.tableFilterByTextDrupal~behavior

Filters the module list table by a text input search string.

Additionally accounts for multiple tables being wrapped in "package" details elements.

Text search input: input.table-filter-text Target table: input.table-filter-text[data-table] Source text: .table-filter-text-source, .module-name, .module-description

staticDrupal.behaviors.tableHeaderDrupal~behavior

Attaches sticky table headers.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the sticky table header behavior.

staticDrupal.behaviors.tableResponsiveDrupal~behavior

Attach the tableResponsive function to Drupal.behaviors.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches tableResponsive functionality.

staticDrupal.behaviors.tableSelectDrupal~behavior

Initialize tableSelects.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches tableSelect functionality.

staticDrupal.behaviors.termDragDrupal~behavior

Move a block in the blocks table from one region to another.

This behavior is dependent on the tableDrag behavior, since it uses the objects initialized in that behavior to update the row.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the drag behavior to a applicable table element.

staticDrupal.behaviors.textSummaryDrupal~behavior

Auto-hide summary textarea if empty and show hide and unhide links.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches auto-hide behavior on text-summary events.

staticDrupal.behaviors.toolbarDrupal~behavior

Registers tabs with the toolbar.

The Drupal toolbar allows modules to register top-level tabs. These may point directly to a resource or toggle the visibility of a tray.

Modules register tabs with hook_toolbar().

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the toolbar rendering functionality to the toolbar element.

staticDrupal.behaviors.tourDrupal~behavior

Attaches the tour's toolbar tab behavior.

It uses the query string for:

  • tour: When ?tour=1 is present, the tour will start automatically after the page has loaded.
  • tips: Pass ?tips=class in the url to filter the available tips to the subset which match the given class.
Properties:
Name Type Description
attach Drupal~behaviorAttach

Attach tour functionality on tour events.

Example
http://example.com/foo?tour=1&tips=bar

staticDrupal.behaviors.trackerHistory

Render "new" and "updated" node indicators, as well as "X new" replies links.

staticDrupal.behaviors.verticalTabsDrupal~behavior

This script transforms a set of details into a stack of vertical tabs.

Each tab may have a summary which can be updated by another script. For that to work, each details element has an associated 'verticalTabCallback' (with jQuery.data() attached to the details), which is called every time the user performs an update to a form element inside the tab pane.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches behaviors for vertical tabs.

staticDrupal.behaviors.viewsAjaxDrupal~behavior

Ajax behaviors for the views_ui module.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches ajax behaviors to the elements with the classes in question.

staticDrupal.behaviors.ViewsAjaxViewDrupal~behavior

Attaches the AJAX behavior to exposed filters forms and key View links.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches ajaxView functionality to relevant elements.

staticDrupal.behaviors.viewsFilterConfigSelectAllDrupal~behavior

Add a select all checkbox, which checks each checkbox at once.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches select all functionality to the views filter form.

staticDrupal.behaviors.viewsModalContentDrupal~behavior

Functionality for views modals.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches modal functionality for views.

detach Drupal~behaviorDetach

Detaches the modal functionality.

staticDrupal.behaviors.viewsRemoveIconClassDrupal~behavior

Remove icon class from elements that are themed as buttons or dropbuttons.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Removes the icon class from certain views elements.

staticDrupal.behaviors.viewsUiAddViewDrupal~behavior

In the add view wizard, use the view name to prepopulate form fields such as page title and menu link.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches behavior for prepopulating page title and menu links, based on view name.

staticDrupal.behaviors.viewsUiChangeDefaultWidgetDrupal~behavior

Change the default widget to select the default group according to the selected widget for the exposed group.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Changes the default widget based on user input.

staticDrupal.behaviors.viewsUiCheckboxifyDrupal~behavior

Change "Expose filter" buttons into checkboxes.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Changes buttons into checkboxes via Drupal.viewsUi.Checkboxifier.

staticDrupal.behaviors.viewsUiEditViewDrupal~behavior

Improve the user experience of the views edit interface.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches toggling of SQL rewrite warning on the corresponding checkbox.

Functionality for the remove link in the views UI.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches behavior for the remove view and remove display links.

staticDrupal.behaviors.viewsUiOverrideSelectDrupal~behavior

Change the Apply button text based upon the override select state.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches behavior to change the Apply button according to the current state.

staticDrupal.behaviors.viewsUiPreviewDrupal~behavior

Preview functionality in the views edit form.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the preview functionality to the view edit form.

staticDrupal.behaviors.viewsUiRearrangeFilterDrupal~behavior

Rearranges the filters.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attach handlers to make it possible to rearange the filters in the form in question.

See:

staticDrupal.behaviors.viewsUiRenderAddViewButtonDrupal~behavior

The input field items that add displays must be rendered as <input> elements. The following behavior detaches the <input> elements from the DOM, wraps them in an unordered list, then appends them to the list of tabs.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Fixes the input elements needed.

staticDrupal.behaviors.viewsUiSearchOptionsDrupal~behavior

Add search options to the views ui.

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches Drupal.viewsUi.OptionsSearch to the views ui filter options.

staticDrupal.behaviors.viewTableFilterByTextDrupal~behavior

Filters the view listing tables by a text input search string.

Text search input: input.views-filter-text Target table: input.views-filter-text[data-table] Source text: [data-drupal-selector="views-table-filter-text-source"]

Properties:
Name Type Description
attach Drupal~behaviorAttach

Attaches the filter functionality to the views admin text search field.