Skip to content

Repository with various assets for IBM Connections Customizer demos

License

Notifications You must be signed in to change notification settings

hclcnx/customizer-sample-apps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

customizer-sample-apps

This repo contains various Customizer sample apps for demo purposes

Useful links and snippets for demo exercises:

Hello World Exercise - Use JS lconn object for dynamic capabilities

dojo.query("span.shareSome-title")[0].textContent="Hello " + lconn.homepage.userName + " ! ";

Hello World Exercise - API sample code

var xhrargs = {
    url: "/connections/opensocial/rest/people/@me/@self",
    handleAs: "json"
};
var deferred = dojo.xhrGet(xhrargs);
deferred.then(
    function(results) {
        //console.log('JSON response = ' + JSON.stringify(results, null, 4));
        dojo.query("span.shareSome-title")[0].textContent="Hello " + results.entry.displayName + " !";
    }
);

Filtering Exercise - conditional match example

                "match": {
                    "condition": {
                        "keyword": "user-name",
                        "regex": "Samantha"
                    }
                }

Filtering Exercise - multiple groups

                "match": {
                    "user-group": [
                        "EarlyAdopters",
                        "Contractors"
                    ]
                }

Filtering Exercise - mix groups and individuals

                "match": {
                    "user-group": "EarlyAdopters",
                    "user-email": "[email protected]"
                }

UI Jitter Remover - smoother integrated rendering of extensions

        {
            "name": "!SmoothLoader",
            "type": "com.ibm.customizer.ui",
            "payload": {
                "include-files": [
                    "samples/smoothLoad/smoothLoad.js",
                    "samples/smoothLoad/smoothLoad.css"
                ],
                "include-repo": {
                    "name": "customizer"
                }
            },
            "path": "homepage",
        }

Periscope Xtender - use Persicope but apply your own colours etc.

        {
            "name": "Xtend VU1",
            "type": "com.ibm.customizer.ui",
            "payload": {
                "include-files": [
                    "visualUpdate/navbar-lab.css"
                ],
                "include-repo": {
                    "name": "customizer-sample-apps"
                },
                "cache-headers": {
                    "cache-control": "max-age=0"
                }
            },
            "path": "global",
            "application": "VU1 - Direct CSS"
        }

CSS Exercises: - Periscope

https://github.com/ibmcnxdev/cnx-custom-theme

CSS Exercises: Note the IBM Design Color Library

https://www.ibm.com/design/language/resources/color-library/

Online Resources

About

Repository with various assets for IBM Connections Customizer demos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •