diff --git a/modules/system/assets/ui/docs/callout.md b/modules/system/assets/ui/docs/callout.md index fa762a0e2..d55ff3808 100644 --- a/modules/system/assets/ui/docs/callout.md +++ b/modules/system/assets/ui/docs/callout.md @@ -2,27 +2,62 @@ ### Callout -Allows the user to dismiss a callout message. +Displays a detailed message to the user, also allowing it to be dismissed. + +
+ +
+ +

Warning warning

+

My arms are flailing wildly

+
+
+

Insert coin(s) to begin play

+
+
+ +### No sub-header + +Include the `no-subheader` class to omit the sub heading. + +
+
+ +

Incoming unicorn

+
+
+ +### No icon + +Include the `no-icon` class to omit the icon. + +
+
+

There was a hull breach

+
+
+ +### No header

Something good happened

+
-### With header +### Data attributes: -
-
-

Warning warning

-
-
-

My arms are flailing wildly

-
-
+- data-dismiss="callout" - when assigned to an element, the callout hides on click ## JavaScript API ### Events -- close.oc.callout - triggered when a node on the tree is moved. +- close.oc.callout - triggered when the callout is closed diff --git a/modules/system/assets/ui/docs/flashmessage.md b/modules/system/assets/ui/docs/flashmessage.md index 2013942f6..3416e7ca5 100644 --- a/modules/system/assets/ui/docs/flashmessage.md +++ b/modules/system/assets/ui/docs/flashmessage.md @@ -54,12 +54,12 @@ A flash message can be rendered as a static element by attaching the `static` cl We couldn't help you with that (error)

-### Data attributes: +### Data attributes - data-control="flash-message" - enables the flash message plugin - data-interval="2" - the interval to display the message in seconds, optional. Default: 2 -### JavaScript API: +### JavaScript API ```js $.oc.flashMsg({ diff --git a/modules/system/assets/ui/docs/popup.md b/modules/system/assets/ui/docs/popup.md index d8e91df92..b7ed70921 100644 --- a/modules/system/assets/ui/docs/popup.md +++ b/modules/system/assets/ui/docs/popup.md @@ -103,7 +103,7 @@ Using the `data-ajax` attribute you can refer to an external file or URL directl ### Options: - content: content HTML string or callback -### Data attributes: +### Data attributes - data-control="popup" - enables the ajax popup plugin - data-ajax="popup-content.htm" - ajax content to load - data-handler="onLoadContent" - October ajax request name @@ -111,7 +111,7 @@ Using the `data-ajax` attribute you can refer to an external file or URL directl - data-extra-data="file_id: 1" - October ajax request data - data-size="large" - Popup size, available sizes: giant, huge, large, small, tiny -### JavaScript API: +### JavaScript API ```js $('a#someLink').popup({ ajax: 'popup-content.htm' }) diff --git a/modules/system/assets/ui/docs/tab.md b/modules/system/assets/ui/docs/tab.md index 2575136ab..5caddb26e 100644 --- a/modules/system/assets/ui/docs/tab.md +++ b/modules/system/assets/ui/docs/tab.md @@ -120,7 +120,7 @@ Example with data attributes (data-control="tab"): -### JavaScript API: +### JavaScript API - $('#mytabs').ocTab({closable: true, closeConfirmation: 'Close this tab? Unsaved data will be lost.'}) - $('#mytabs').ocTab('addTab', 'Tab title', 'Tab content', identifier) - adds tab. The optional identifier parameter allows to associate a identifier with a tab. The identifier can be used with the goTo() method to find and open a tab by it's identifier.