diff --git a/RELEASE NOTES.md b/RELEASE NOTES.md index 8faff936c..41e9235bf 100755 --- a/RELEASE NOTES.md +++ b/RELEASE NOTES.md @@ -4,11 +4,15 @@ ### Version 0.7.0 - Oct 17, 2013 **New** +- Added responsive style to ui tables +- Adds sortable tables to docs +- Adds new tabbed doc style for modules - Popups can now have a different target than itself - Adds onTabInit for local tabs on first load +- Adds documentation for module format **Fixes** -- Fixes border radius on tabular menu +- Fixes border radius on tabular menu, fixes one pixel jump on active state - Removes vertical label width line missing units - Fixes pointing dropdown to appear correctly in menu - Fixes issue with borders on selection dropdown @@ -17,8 +21,13 @@ - Popup .toggle() now always hides/shows popup correctly - Dropdown cannot display inside item image - Dropdown links were being prevented by event.preventDefault used for touch devices +- Fixes some code samples not being properly indented **Updates** +- Increased padding on attached labels +- Leading on bulleted and ordered list slightly increased +- Horizontal padding on icon list slightly increased +- Increase opacity of icons on icon messages - Ribbon labels now have a shadow color - Popups are no longer inline by default - Optimizes dimmer init on modal to occur on modal init and not modal show diff --git a/server/documents/module.html.eco b/server/documents/module.html.eco index c230a3971..0dfecd229 100755 --- a/server/documents/module.html.eco +++ b/server/documents/module.html.eco @@ -13,17 +13,14 @@ type : 'Semantic'
-

Design Pattern

+

Overview

All official javascript modules in Semantic are designed using a singular design pattern. This pattern allows several useful features common to all javascript components

- - - View Commented Example -
@@ -61,21 +58,66 @@ type : 'Semantic'
+ + + View Commented Example + + +

Initializing

+

UI Modules are not automatically initialized on page load. You must attach event handlers to trigger the behavior you require for each element

+

Its okay to initialize an element multiple times, the element will automatically destroy the previous instance and re-initiale with the settings provided.

+
+ $(document) + .ready(function() { + // just initializing + $('.help.icon') + .popup() + ; + // initializing with settings + $('.ui.image') + .popup({ + position: 'top right' + }) + ; + }) + ; +
+
+ + +
+

Behaviors

Behaviors are an elements API. These can be invoke functionality or return aspects of the current state for an element

Triggering a Behavior

Behaviors are triggered in Semantic using a familiar syntax. API behaviors can be called using spaced words, camelcase or dot notation. The preferred method however is spaced words. Method lookup is done internally.

-
- // generically - $('.ui.element') - .module('method', valueOne, valueTwo) - ; +
// Sets a popup to top left position with an offset of negative five - $('.ui.popup') + $('.popup.icon') .popup('set position', 'top left', -5) ;
+
+ // returns boolean value instead of jQuery chain + $('.popup.icon').popup('is visible'); +
+
+ // if selector size > 1 returns array of values [boolean, boolean...] + $('.many.popup').popup('is visible'); +
+ +

Overriding Internals

+

Internal methods can be overwritten at run-time for individual instances of a module as well. For example:

+
+ // this instance will popup an alert for each log + $('.popup.icon') + .popup('internal', 'debug', function() { + window.alert(arguments[0]); + }) + ; +
+

Common Behaviors

All modules have a set of core behaviors which allow you to configure the component

@@ -106,7 +148,7 @@ type : 'Semantic' Internal method used for translating sentence case method into an internal method - log(comment, values) + debug(comment, values) Displays a log if a user has logging enabled @@ -186,13 +228,13 @@ type : 'Semantic'
Setting module defaults
Default settings for the module can be overridden by modifying $.fn.module.settings. -
$.fn.popup.settings.moduleName = 'Godzilla';
+
$.fn.popup.settings.moduleName = 'Godzilla';
At initialization
A settings object can be passed in when initializing the plugin
-
+
$('.foo') .popup({ moduleName : 'Godzilla', @@ -205,7 +247,7 @@ type : 'Semantic'
After initialization
Settings can be changed after a module is initialized by calling the 'settings' method on the module with either a settings object or a name, value pair.
-
+
$('.foo') // lets initialize that! .popup() @@ -222,8 +264,8 @@ type : 'Semantic'

Reading Settings

Settings can also be read programmatically: -

- // outputs godzilla +
+ // outputs 'godzilla' (1) or ['godzilla', 'godzilla'...] (2 or more) $('.foo').popup('setting', 'moduleName');
diff --git a/server/documents/modules/accordion.html.eco b/server/documents/modules/accordion.html.eco index e17c9b397..a2e9d4770 100755 --- a/server/documents/modules/accordion.html.eco +++ b/server/documents/modules/accordion.html.eco @@ -111,9 +111,12 @@ type : 'UI Module'
-

Behavior

+

Behaviors

- All the following behaviors can be called using the syntax $('.foo').accordion('behavior name', argumentOne, argumentTwo) +

Behaviors are accessible with javascript using the syntax:

+

+ $('.ui.accordion').accordion('behavior', argumentOne, argumentTwo...); +
@@ -126,7 +129,7 @@ type : 'UI Module' - +
toggle (index)Closes accordion content at indexToggles accordion content at index
@@ -135,33 +138,36 @@ type : 'UI Module'
-

Form

+

Form

An accordion can be used anywhere where content can be shown or hidden. For example, to show optional form fields.

-
-
-
- - +
+
+
+
+ + +
+
+ + +
-
- - +
+ + Optional Details
-
-
- - Optional Details -
-
-
- - +
+
+ + +
+
Sign Up
-

Menu

+

Menu

An accordion can be used to create content drawers inside a menu