renamed ControlSidebar DATA_KEY to lte.controlsidebar

pull/2197/head
REJack 2019-08-20 12:35:22 +02:00
parent b816ef347a
commit 1b1b909162
No known key found for this signature in database
GPG Key ID: 9F3976CC630CC888
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ const ControlSidebar = (($) => {
*/ */
const NAME = 'ControlSidebar' const NAME = 'ControlSidebar'
const DATA_KEY = 'lte.control.sidebar' const DATA_KEY = 'lte.controlsidebar'
const EVENT_KEY = `.${DATA_KEY}` const EVENT_KEY = `.${DATA_KEY}`
const JQUERY_NO_CONFLICT = $.fn[NAME] const JQUERY_NO_CONFLICT = $.fn[NAME]
const DATA_API_KEY = '.data-api' const DATA_API_KEY = '.data-api'

View File

@ -54,8 +54,8 @@ $("#my-toggle-button").ControlSidebar('toggle');
|--- |---
| Event Type | Description | Event Type | Description
|-|- |-|-
|expanded.lte.control.sidebar | Triggered after a control sidebar expands. |expanded.lte.controlsidebar | Triggered after a control sidebar expands.
|collapsed.lte.control.sidebar | Triggered after a control sidebar collapses. |collapsed.lte.controlsidebar | Triggered after a control sidebar collapses.
{: .table .table-bordered .bg-light} {: .table .table-bordered .bg-light}
Example: `$('#toggle-button').on('expanded.lte.control.sidebar', handleExpandedEvent)` Example: `$('#toggle-button').on('expanded.lte.controlsidebar', handleExpandedEvent)`