Semantic-Org/Module-Examples

Name: Module-Examples

Owner: Semantic Org

Description: Annotated source of Semantic UI Module Format

Created: 2015-04-27 22:04:48.0

Updated: 2017-08-27 13:14:21.0

Pushed: 2015-04-27 22:47:39.0

Homepage: http://semantic-org.github.io/Module-Examples/docs/module.html

Size: 428

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

What's Here

This is the annotated source of the standard module format used to power UI modules in Semantic UI.

You can view the annotated source online.

Standard Features
Advanced Features
Method Lookup

Method invocation automatically converts sentence case to camelCase or nested object during method lookup

component').component('set text', 'Foobar');

Internally matches against methods

 {
xt: function(text) {
 // do something


As well as

ext: function(Text) {
 do something

Mutation Observers

Elements use DOM Mutation Observers to allow refreshing cached values after changes

MutationObserver' in window) {
server = new MutationObserver(function(mutations) {
module.debug('Element updated refreshing selectors');
module.refresh();
;
server.observe(element, {
childList : true,
subtree   : true
;
dule.debug('Setting up mutation observer', observer);

Building Docs
 get docco
install -g docco
 build
o src/*.js --css src/css/docco

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.